Changeset 229091 in webkit
- Timestamp:
- Feb 28, 2018 8:31:34 AM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r229090 r229091 1 2018-02-28 Zalan Bujtas <zalan@apple.com> 2 3 Remove RenderElement::s_affectsParentBlock 4 https://bugs.webkit.org/show_bug.cgi?id=183187 5 <rdar://problem/37961079> 6 7 Reviewed by Antti Koivisto. 8 9 Remove the hack to track floating/out-of-flow changes between styleWillChange and styleDidChange. 10 11 Covered by existing tests. 12 13 * rendering/RenderElement.cpp: 14 (WebCore::RenderElement::styleWillChange): 15 (WebCore::RenderElement::styleDidChange): 16 * rendering/RenderElement.h: 17 1 18 2018-02-28 Antti Koivisto <antti@apple.com> 2 19 -
trunk/Source/WebCore/rendering/RenderElement.cpp
r228938 r229091 95 95 static_assert(sizeof(RenderElement) == sizeof(SameSizeAsRenderElement), "RenderElement should stay small"); 96 96 97 bool RenderElement::s_affectsParentBlock = false;98 97 bool RenderElement::s_noLongerAffectsParentBlock = false; 99 98 … … 750 749 } 751 750 752 s_affectsParentBlock = isFloatingOrOutOfFlowPositioned()753 && (!newStyle.isFloating() && !newStyle.hasOutOfFlowPosition())754 && parent() && (parent()->isRenderBlockFlow() || parent()->isRenderInline());755 756 751 s_noLongerAffectsParentBlock = ((!isFloating() && newStyle.isFloating()) || (!isOutOfFlowPositioned() && newStyle.hasOutOfFlowPosition())) 757 752 && parent() && parent()->isRenderBlock(); … … 770 765 setHasTransformRelatedProperty(false); 771 766 setHasReflection(false); 772 } else { 773 s_affectsParentBlock = false; 767 } else 774 768 s_noLongerAffectsParentBlock = false; 775 }776 769 777 770 bool newStyleSlowScroll = false; … … 814 807 updateShapeImage(oldStyle ? oldStyle->shapeOutside() : nullptr, m_style.shapeOutside()); 815 808 816 if (s_affectsParentBlock) { 809 bool affectsParentBlock = oldStyle && (oldStyle->isFloating() || oldStyle->hasOutOfFlowPosition()) 810 && !style().isFloating() && !style().hasOutOfFlowPosition() 811 && parent() && (parent()->isRenderBlockFlow() || parent()->isRenderInline()); 812 if (affectsParentBlock) { 817 813 // We have gone from not affecting the inline status of the parent flow to suddenly 818 814 // having an impact. See if there is a mismatch between the parent flow's -
trunk/Source/WebCore/rendering/RenderElement.h
r228938 r229091 352 352 // FIXME: Get rid of this hack. 353 353 // Store state between styleWillChange and styleDidChange 354 static bool s_affectsParentBlock;355 354 static bool s_noLongerAffectsParentBlock; 356 355 };
Note: See TracChangeset
for help on using the changeset viewer.