Changeset 156527 in webkit for trunk/Source/WebCore/rendering/RenderInline.cpp
- Timestamp:
- Sep 26, 2013, 7:02:27 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderInline.cpp
r156422 r156527 149 149 } 150 150 151 static void updateStyleOfAnonymousBlockContinuations(Render Object* block, const RenderStyle* newStyle, const RenderStyle* oldStyle)152 { 153 for (;block && block->isAnonymousBlock(); block = block->nextSibling()) {154 if (! toRenderBlock(block)->isAnonymousBlockContinuation() || block->style()->position() == newStyle->position())151 static void updateStyleOfAnonymousBlockContinuations(RenderBlock* block, const RenderStyle* newStyle, const RenderStyle* oldStyle) 152 { 153 for (;block && block->isAnonymousBlock(); block = toRenderBlock(block->nextSibling())) { 154 if (!block->isAnonymousBlockContinuation() || block->style()->position() == newStyle->position()) 155 155 continue; 156 156 // If we are no longer in-flow positioned but our descendant block(s) still have an in-flow positioned ancestor then 157 157 // their containing anonymous block should keep its in-flow positioning. 158 RenderInline* cont = toRenderBlock(block)->inlineElementContinuation();158 RenderInline* cont = block->inlineElementContinuation(); 159 159 if (oldStyle->hasInFlowPosition() && inFlowPositionedInlineAncestor(cont)) 160 160 continue; … … 191 191 RenderObject* block = containingBlock()->nextSibling(); 192 192 ASSERT(block && block->isAnonymousBlock()); 193 updateStyleOfAnonymousBlockContinuations( block, newStyle, oldStyle);193 updateStyleOfAnonymousBlockContinuations(toRenderBlock(block), newStyle, oldStyle); 194 194 } 195 195 … … 1030 1030 LayoutRect RenderInline::clippedOverflowRectForRepaint(const RenderLayerModelObject* repaintContainer) const 1031 1031 { 1032 // Only run-ins a re allowed in here during layout.1033 ASSERT(!view().layoutStateEnabled() || isRunIn() );1032 // Only run-ins and first-letter renderers are allowed in here during layout. They mutate the tree triggering repaints. 1033 ASSERT(!view().layoutStateEnabled() || isRunIn() || style()->styleType() == FIRST_LETTER); 1034 1034 1035 1035 if (!firstLineBoxIncludingCulling() && !continuation())
Note:
See TracChangeset
for help on using the changeset viewer.