Changeset 156876 in webkit for trunk/Source/WebCore/rendering/RenderView.cpp
- Timestamp:
- Oct 3, 2013, 9:04:35 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderView.cpp
r156822 r156876 303 303 bool relayoutChildren = !shouldUsePrintingLayout() && (width() != viewWidth() || height() != viewHeight()); 304 304 if (relayoutChildren) { 305 setChildNeedsLayout( true,MarkOnlyThis);305 setChildNeedsLayout(MarkOnlyThis); 306 306 for (RenderObject* child = firstChild(); child; child = child->nextSibling()) { 307 if ((child->isBox() && (toRenderBox(child)->hasRelativeLogicalHeight() || toRenderBox(child)->hasViewportPercentageLogicalHeight())) 308 || child->style()->logicalHeight().isPercent() 309 || child->style()->logicalMinHeight().isPercent() 310 || child->style()->logicalMaxHeight().isPercent() 311 || child->style()->logicalHeight().isViewportPercentage() 312 || child->style()->logicalMinHeight().isViewportPercentage() 313 || child->style()->logicalMaxHeight().isViewportPercentage() 307 if (!child->isBox()) 308 continue; 309 RenderBox& box = toRenderBox(*child); 310 if (box.hasRelativeLogicalHeight() 311 || box.hasViewportPercentageLogicalHeight() 312 || box.style()->logicalHeight().isPercent() 313 || box.style()->logicalMinHeight().isPercent() 314 || box.style()->logicalMaxHeight().isPercent() 315 || box.style()->logicalHeight().isViewportPercentage() 316 || box.style()->logicalMinHeight().isViewportPercentage() 317 || box.style()->logicalMaxHeight().isViewportPercentage() 314 318 #if ENABLE(SVG) 315 || child->isSVGRoot()319 || box.isSVGRoot() 316 320 #endif 317 321 ) 318 child->setChildNeedsLayout(true,MarkOnlyThis);322 box.setChildNeedsLayout(MarkOnlyThis); 319 323 } 320 324 } … … 341 345 #endif 342 346 m_layoutState = 0; 343 setNeedsLayout(false);347 clearNeedsLayout(); 344 348 345 349 if (isSeamlessAncestorInFlowThread)
Note:
See TracChangeset
for help on using the changeset viewer.