Changeset 85964 in webkit


Ignore:
Timestamp:
May 6, 2011 11:50:08 AM (13 years ago)
Author:
hyatt@apple.com
Message:

https://bugs.webkit.org/show_bug.cgi?id=60390 (<rdar://problem/9364449>)
REGRESSION (r81992): portions of ticketmaster site render blank

Reviewed by Dan Bernstein.

Make simplified layout skip from a positioned object out to its containing block. There is no
need to dirty the intermediate inlines, and in this case it's actively harmful, since the
block responsible for the layout of the positioned object doesn't get m_posChildNeedsLayout set.

Source/WebCore:

Added fast/block/positioning/hiding-inside-relpositioned-inline.html

  • rendering/RenderObject.h:

(WebCore::RenderObject::markContainingBlocksForLayout):

LayoutTests:

  • fast/block/positioning/hiding-inside-relpositioned-inline.html: Added.
  • platform/mac/fast/block/positioning/hiding-inside-relpositioned-inline-expected.png: Added.
  • platform/mac/fast/block/positioning/hiding-inside-relpositioned-inline-expected.txt: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r85961 r85964  
     12011-05-06  David Hyatt  <hyatt@apple.com>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=60390 (<rdar://problem/9364449>)
     6        REGRESSION (r81992): portions of ticketmaster site render blank
     7
     8        Make simplified layout skip from a positioned object out to its containing block.  There is no
     9        need to dirty the intermediate inlines, and in this case it's actively harmful, since the
     10        block responsible for the layout of the positioned object doesn't get m_posChildNeedsLayout set.
     11
     12        * fast/block/positioning/hiding-inside-relpositioned-inline.html: Added.
     13        * platform/mac/fast/block/positioning/hiding-inside-relpositioned-inline-expected.png: Added.
     14        * platform/mac/fast/block/positioning/hiding-inside-relpositioned-inline-expected.txt: Added.
     15
    1162011-05-06  Adam Roben  <aroben@apple.com>
    217
  • trunk/Source/WebCore/ChangeLog

    r85963 r85964  
     12011-05-06  David Hyatt  <hyatt@apple.com>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=60390 (<rdar://problem/9364449>)
     6        REGRESSION (r81992): portions of ticketmaster site render blank
     7
     8        Make simplified layout skip from a positioned object out to its containing block.  There is no
     9        need to dirty the intermediate inlines, and in this case it's actively harmful, since the
     10        block responsible for the layout of the positioned object doesn't get m_posChildNeedsLayout set.
     11
     12        Added fast/block/positioning/hiding-inside-relpositioned-inline.html
     13
     14        * rendering/RenderObject.h:
     15        (WebCore::RenderObject::markContainingBlocksForLayout):
     16
    1172011-05-06  Pavel Feldman  <pfeldman@chromium.org>
    218
  • trunk/Source/WebCore/rendering/RenderObject.h

    r85512 r85964  
    10191019            return;
    10201020        if (!last->isText() && (last->style()->position() == FixedPosition || last->style()->position() == AbsolutePosition)) {
    1021             if (o->m_posChildNeedsLayout)
     1021            while (o && !o->isRenderBlock()) // Skip relatively positioned inlines and get to the enclosing RenderBlock.
     1022                o = o->container();
     1023            if (!o || o->m_posChildNeedsLayout)
    10221024                return;
    10231025            o->m_posChildNeedsLayout = true;
Note: See TracChangeset for help on using the changeset viewer.