Changeset 28519 in webkit


Ignore:
Timestamp:
Dec 7, 2007 10:26:50 AM (16 years ago)
Author:
mitz@apple.com
Message:

WebCore:

Reviewed by Darin Adler.

Test: fast/dynamic/subtree-no-common-root-static-y.html

  • rendering/RenderObject.cpp: (WebCore::RenderObject::markContainingBlocksForLayout): Changed the call to setChildNeedsLayout() to not mark containing blocks and added a separate call to markContainingBlocksForLayout() that will not schedule a layout if we are already in the middle of scheduleRelayoutOfSubtree().

LayoutTests:

Reviewed by Darin Adler.

  • fast/dynamic/subtree-no-common-root-static-y.html: Added.
  • platform/mac/fast/dynamic/subtree-no-common-root-static-y-expected.checksum: Added.
  • platform/mac/fast/dynamic/subtree-no-common-root-static-y-expected.png: Added.
  • platform/mac/fast/dynamic/subtree-no-common-root-static-y-expected.txt: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r28515 r28519  
     12007-12-07  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        - test for http://bugs.webkit.org/show_bug.cgi?id=16334
     6          <rdar://problem/5634923> REGRESSION (r28299): Homepage of any DotMac Web Gallery won't load completely
     7
     8        * fast/dynamic/subtree-no-common-root-static-y.html: Added.
     9        * platform/mac/fast/dynamic/subtree-no-common-root-static-y-expected.checksum: Added.
     10        * platform/mac/fast/dynamic/subtree-no-common-root-static-y-expected.png: Added.
     11        * platform/mac/fast/dynamic/subtree-no-common-root-static-y-expected.txt: Added.
     12
    1132007-12-07  Alexey Proskuryakov  <ap@webkit.org>
    214
  • trunk/WebCore/ChangeLog

    r28515 r28519  
     12007-12-07  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        - fix http://bugs.webkit.org/show_bug.cgi?id=16334
     6          <rdar://problem/5634923> REGRESSION (r28299): Homepage of any DotMac Web Gallery won't load completely
     7
     8        Test: fast/dynamic/subtree-no-common-root-static-y.html
     9
     10        * rendering/RenderObject.cpp:
     11        (WebCore::RenderObject::markContainingBlocksForLayout): Changed the call
     12        to setChildNeedsLayout() to not mark containing blocks and added a
     13        separate call to markContainingBlocksForLayout() that will not schedule
     14        a layout if we are already in the middle of scheduleRelayoutOfSubtree().
     15
    1162007-12-07  Alexey Proskuryakov  <ap@webkit.org>
    217
  • trunk/WebCore/rendering/RenderObject.cpp

    r28299 r28519  
    728728    while (o) {
    729729        if (!last->isText() && (last->style()->position() == FixedPosition || last->style()->position() == AbsolutePosition)) {
    730             if (last->hasStaticY())
    731                 last->parent()->setChildNeedsLayout(true);
     730            if (last->hasStaticY()) {
     731                RenderObject* parent = last->parent();
     732                if (!parent->normalChildNeedsLayout()) {
     733                    parent->setChildNeedsLayout(true, false);
     734                    parent->markContainingBlocksForLayout(scheduleRelayout, newRoot);
     735                }
     736            }
    732737            if (o->m_posChildNeedsLayout)
    733738                return;
Note: See TracChangeset for help on using the changeset viewer.