Changeset 148521 in webkit


Ignore:
Timestamp:
Apr 16, 2013 10:18:38 AM (11 years ago)
Author:
jonlee@apple.com
Message:

RenderView should bail out of paintBoxDecorations() when painting with a different renderer
https://bugs.webkit.org/show_bug.cgi?id=114665
<rdar://problem/13434884>

Reviewed by Simon Fraser.

  • rendering/RenderView.cpp:

(WebCore::RenderView::paintBoxDecorations): Add a check to see if we should paint within the renderer.
This check exists in all other implementations of paintBoxDecorations(), and correctly avoids painting the
decorations if the root provided is not the RenderView.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r148518 r148521  
     12013-04-15  Jon Lee  <jonlee@apple.com>
     2
     3        RenderView should bail out of paintBoxDecorations() when painting with a different renderer
     4        https://bugs.webkit.org/show_bug.cgi?id=114665
     5        <rdar://problem/13434884>
     6
     7        Reviewed by Simon Fraser.
     8
     9        * rendering/RenderView.cpp:
     10        (WebCore::RenderView::paintBoxDecorations): Add a check to see if we should paint within the renderer.
     11        This check exists in all other implementations of paintBoxDecorations(), and correctly avoids painting the
     12        decorations if the root provided is not the RenderView.
     13
    1142013-04-16  Max Vujovic  <mvujovic@adobe.com>
    215
  • trunk/Source/WebCore/rendering/RenderView.cpp

    r148188 r148521  
    427427void RenderView::paintBoxDecorations(PaintInfo& paintInfo, const LayoutPoint&)
    428428{
     429    if (!paintInfo.shouldPaintWithinRoot(this))
     430        return;
     431
    429432    // Check to see if we are enclosed by a layer that requires complex painting rules.  If so, we cannot blit
    430433    // when scrolling, and we need to use slow repaints.  Examples of layers that require this are transparent layers,
Note: See TracChangeset for help on using the changeset viewer.