Changeset 51205 in webkit


Ignore:
Timestamp:
Nov 19, 2009 2:04:51 PM (14 years ago)
Author:
oliver@apple.com
Message:

-webkit-user-drag: element Drag images include overflow decorations from incorrect nodes
https://bugs.webkit.org/show_bug.cgi?id=31656

Reviewed Dave Hyatt

Make sure we're a child of the painting root before drawing overflow features.

Location:
trunk/WebCore
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r51204 r51205  
     12009-11-19  Oliver Hunt  <oliver@apple.com>
     2
     3        Reviewed by Dave Hyatt.
     4
     5        -webkit-user-drag: element Drag images include overflow decorations from incorrect nodes
     6        https://bugs.webkit.org/show_bug.cgi?id=31656
     7
     8        Make sure we're a child of the painting root before drawing overflow features.
     9
     10        * manual-tests/user-drag-with-decorations.html: Added.
     11        * rendering/RenderBlock.cpp:
     12        (WebCore::RenderBlock::paint):
     13
    1142009-11-19  Dmitry Titov  <dimich@chromium.org>
    215
  • trunk/WebCore/rendering/RenderBlock.cpp

    r50869 r51205  
    15241524    // z-index.  We paint after we painted the background/border, so that the scrollbars will
    15251525    // sit above the background/border.
    1526     if (hasOverflowClip() && style()->visibility() == VISIBLE && (phase == PaintPhaseBlockBackground || phase == PaintPhaseChildBlockBackground))
     1526    if (hasOverflowClip() && style()->visibility() == VISIBLE && (phase == PaintPhaseBlockBackground || phase == PaintPhaseChildBlockBackground) && shouldPaintWithinRoot(paintInfo))
    15271527        layer()->paintOverflowControls(paintInfo.context, tx, ty, paintInfo.rect);
    15281528}
Note: See TracChangeset for help on using the changeset viewer.