Changeset 209986 in webkit
- Timestamp:
- Dec 19, 2016 9:37:11 AM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r209983 r209986 1 2016-12-19 Antti Koivisto <antti@apple.com> 2 3 Remove RenderObject::requiresForcedStyleRecalcPropagation 4 https://bugs.webkit.org/show_bug.cgi?id=166021 5 6 Reviewed by Andreas Kling. 7 8 It is not called. It also makes no sense architecturally. 9 10 * html/shadow/mac/ImageControlsButtonElementMac.cpp: 11 * html/shadow/mac/ImageControlsRootElementMac.cpp: 12 * rendering/RenderButton.h: 13 * rendering/RenderFileUploadControl.h: 14 * rendering/RenderListItem.h: 15 * rendering/RenderMedia.h: 16 * rendering/RenderMenuList.h: 17 * rendering/RenderMeter.h: 18 * rendering/RenderObject.h: 19 (WebCore::RenderObject::requiresForcedStyleRecalcPropagation): Deleted. 20 * rendering/RenderProgress.h: 21 * rendering/RenderSlider.h: 22 * rendering/RenderTextControl.h: 23 * style/RenderTreeUpdater.cpp: 24 (WebCore::RenderTreeUpdater::updateElementRenderer): 25 26 This is the only call site. Combination 27 28 update.change == Style::NoChange && parent().styleChange == Style::Force 29 30 is impossible ('Force' inherits) so requiresForcedStyleRecalcPropagation doesn't ever even get called. 31 1 32 2016-12-19 Zan Dobersek <zdobersek@igalia.com> 2 33 -
trunk/Source/WebCore/html/shadow/mac/ImageControlsButtonElementMac.cpp
r209903 r209986 54 54 55 55 const char* renderName() const override { return "RenderImageControlsButton"; } 56 bool requiresForcedStyleRecalcPropagation() const override { return true; }57 56 }; 58 57 -
trunk/Source/WebCore/html/shadow/mac/ImageControlsRootElementMac.cpp
r209903 r209986 47 47 48 48 const char* renderName() const override { return "RenderImageControls"; } 49 bool requiresForcedStyleRecalcPropagation() const override { return true; }50 49 }; 51 50 -
trunk/Source/WebCore/rendering/RenderButton.h
r208668 r209986 72 72 bool hasLineIfEmpty() const override; 73 73 74 bool requiresForcedStyleRecalcPropagation() const override { return true; }75 76 74 bool isFlexibleBoxImpl() const override { return true; } 77 75 -
trunk/Source/WebCore/rendering/RenderFileUploadControl.h
r208668 r209986 53 53 void paintObject(PaintInfo&, const LayoutPoint&) override; 54 54 55 bool requiresForcedStyleRecalcPropagation() const override { return true; }56 57 55 int maxFilenameWidth() const; 58 56 -
trunk/Source/WebCore/rendering/RenderListItem.h
r208668 r209986 74 74 void styleDidChange(StyleDifference, const RenderStyle* oldStyle) override; 75 75 76 bool requiresForcedStyleRecalcPropagation() const override { return true; }77 78 76 void addOverflowFromChildren() override; 79 77 void computePreferredLogicalWidths() override; -
trunk/Source/WebCore/rendering/RenderMedia.h
r201588 r209986 54 54 void paintReplaced(PaintInfo&, const LayoutPoint&) override; 55 55 56 bool requiresForcedStyleRecalcPropagation() const final { return true; }57 58 56 bool shadowControlsNeedCustomLayoutMetrics() const override { return true; } 59 57 void styleDidChange(StyleDifference, const RenderStyle* oldStyle) final; -
trunk/Source/WebCore/rendering/RenderMenuList.h
r208985 r209986 82 82 void styleDidChange(StyleDifference, const RenderStyle* oldStyle) override; 83 83 84 bool requiresForcedStyleRecalcPropagation() const override { return true; }85 86 84 // PopupMenuClient methods 87 85 void valueChanged(unsigned listIndex, bool fireOnChange = true) override; -
trunk/Source/WebCore/rendering/RenderMeter.h
r209903 r209986 44 44 const char* renderName() const override { return "RenderMeter"; } 45 45 bool isMeter() const override { return true; } 46 bool requiresForcedStyleRecalcPropagation() const override { return true; }47 46 }; 48 47 -
trunk/Source/WebCore/rendering/RenderObject.h
r209411 r209986 327 327 FlowThreadState flowThreadState() const { return m_bitfields.flowThreadState(); } 328 328 void setFlowThreadState(FlowThreadState state) { m_bitfields.setFlowThreadState(state); } 329 330 virtual bool requiresForcedStyleRecalcPropagation() const { return false; }331 329 332 330 #if ENABLE(MATHML) -
trunk/Source/WebCore/rendering/RenderProgress.h
r209903 r209986 44 44 const char* renderName() const override { return "RenderProgress"; } 45 45 bool isProgress() const override { return true; } 46 bool requiresForcedStyleRecalcPropagation() const override { return true; }47 46 LogicalExtentComputedValues computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const override; 48 47 -
trunk/Source/WebCore/rendering/RenderSlider.h
r208668 r209986 46 46 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const override; 47 47 void computePreferredLogicalWidths() override; 48 bool requiresForcedStyleRecalcPropagation() const override { return true; }49 48 void layout() override; 50 49 -
trunk/Source/WebCore/rendering/RenderTextControl.h
r209903 r209986 81 81 82 82 bool canBeProgramaticallyScrolled() const override { return true; } 83 84 bool requiresForcedStyleRecalcPropagation() const override { return true; }85 83 }; 86 84 -
trunk/Source/WebCore/style/RenderTreeUpdater.cpp
r209802 r209986 284 284 285 285 if (update.change == Style::NoChange) { 286 if (pseudoStyleCacheIsInvalid(&renderer, update.style.get()) || (parent().styleChange == Style::Force && renderer.requiresForcedStyleRecalcPropagation())) {286 if (pseudoStyleCacheIsInvalid(&renderer, update.style.get())) { 287 287 renderer.setStyle(RenderStyle::clone(*update.style), StyleDifferenceEqual); 288 288 return;
Note: See TracChangeset
for help on using the changeset viewer.