Changeset 156816 in webkit for trunk/Source/WebCore/rendering/RenderObject.cpp
- Timestamp:
- Oct 2, 2013, 7:26:52 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderObject.cpp
r156639 r156816 620 620 } 621 621 622 void RenderObject::clearNeedsLayout() 623 { 624 m_bitfields.setNeedsLayout(false); 625 setEverHadLayout(true); 626 setPosChildNeedsLayoutBit(false); 627 setNeedsSimplifiedNormalFlowLayoutBit(false); 628 setNormalChildNeedsLayoutBit(false); 629 setNeedsPositionedMovementLayoutBit(false); 630 if (isRenderElement()) 631 toRenderElement(this)->setAncestorLineBoxDirty(false); 632 #ifndef NDEBUG 633 checkBlockPositionedObjectsNeedLayout(); 634 #endif 635 } 636 622 637 void RenderObject::markContainingBlocksForLayout(bool scheduleRelayout, RenderObject* newRoot) 623 638 { … … 641 656 if (!container && !object->isRenderView()) 642 657 return; 643 if ( !last->isText() &&last->style()->hasOutOfFlowPosition()) {658 if (last->style()->hasOutOfFlowPosition()) { 644 659 bool willSkipRelativelyPositionedInlines = !object->isRenderBlock() || object->isAnonymousBlock(); 645 660 // Skip relatively positioned inlines and anonymous blocks to get to the enclosing RenderBlock. … … 650 665 if (willSkipRelativelyPositionedInlines) 651 666 container = object->container(); 652 object->setPosChildNeedsLayout (true);667 object->setPosChildNeedsLayoutBit(true); 653 668 simplifiedNormalFlowLayout = true; 654 669 ASSERT(!object->isSetNeedsLayoutForbidden()); … … 656 671 if (object->needsSimplifiedNormalFlowLayout()) 657 672 return; 658 object->setNeedsSimplifiedNormalFlowLayout (true);673 object->setNeedsSimplifiedNormalFlowLayoutBit(true); 659 674 ASSERT(!object->isSetNeedsLayoutForbidden()); 660 675 } else { 661 676 if (object->normalChildNeedsLayout()) 662 677 return; 663 object->setNormalChildNeedsLayout (true);678 object->setNormalChildNeedsLayoutBit(true); 664 679 ASSERT(!object->isSetNeedsLayoutForbidden()); 665 680 } … … 2210 2225 child = child->nextSibling(); 2211 2226 } 2212 setNeedsLayout(false);2227 clearNeedsLayout(); 2213 2228 } 2214 2229
Note:
See TracChangeset
for help on using the changeset viewer.