Changeset 208971 in webkit
- Timestamp:
- Nov 24, 2016 4:54:00 AM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r208967 r208971 1 2016-11-24 Antti Koivisto <antti@apple.com> 2 3 Remove unused bool return from Element::willRecalcStyle 4 https://bugs.webkit.org/show_bug.cgi?id=165059 5 6 Reviewed by Andreas Kling. 7 8 It is always true. 9 10 * dom/Element.cpp: 11 (WebCore::Element::willRecalcStyle): 12 * dom/Element.h: 13 * html/HTMLFrameSetElement.cpp: 14 (WebCore::HTMLFrameSetElement::willRecalcStyle): 15 * html/HTMLFrameSetElement.h: 16 * html/HTMLPlugInImageElement.cpp: 17 (WebCore::HTMLPlugInImageElement::willRecalcStyle): 18 * html/HTMLPlugInImageElement.h: 19 * style/StyleTreeResolver.cpp: 20 (WebCore::Style::TreeResolver::resolveComposedTree): 21 * svg/SVGElement.cpp: 22 (WebCore::SVGElement::willRecalcStyle): 23 * svg/SVGElement.h: 24 * svg/SVGUseElement.cpp: 25 (WebCore::SVGUseElement::willRecalcStyle): 26 * svg/SVGUseElement.h: 27 1 28 2016-11-22 Antti Koivisto <antti@apple.com> 2 29 -
trunk/Source/WebCore/dom/Element.cpp
r208828 r208971 3464 3464 } 3465 3465 3466 boolElement::willRecalcStyle(Style::Change)3466 void Element::willRecalcStyle(Style::Change) 3467 3467 { 3468 3468 ASSERT(hasCustomStyleResolveCallbacks()); 3469 return true;3470 3469 } 3471 3470 -
trunk/Source/WebCore/dom/Element.h
r208875 r208971 513 513 WEBCORE_EXPORT bool dispatchMouseForceWillBegin(); 514 514 515 virtual boolwillRecalcStyle(Style::Change);515 virtual void willRecalcStyle(Style::Change); 516 516 virtual void didRecalcStyle(Style::Change); 517 517 virtual void willResetComputedStyle(); -
trunk/Source/WebCore/html/HTMLFrameSetElement.cpp
r207458 r208971 201 201 } 202 202 203 boolHTMLFrameSetElement::willRecalcStyle(Style::Change)203 void HTMLFrameSetElement::willRecalcStyle(Style::Change) 204 204 { 205 205 if (needsStyleRecalc() && renderer()) 206 206 renderer()->setNeedsLayout(); 207 return true;208 207 } 209 208 -
trunk/Source/WebCore/html/HTMLFrameSetElement.h
r208179 r208971 60 60 void defaultEventHandler(Event&) final; 61 61 62 boolwillRecalcStyle(Style::Change) final;62 void willRecalcStyle(Style::Change) final; 63 63 64 64 InsertionNotificationRequest insertedInto(ContainerNode&) final; -
trunk/Source/WebCore/html/HTMLPlugInImageElement.cpp
r208828 r208971 237 237 } 238 238 239 boolHTMLPlugInImageElement::willRecalcStyle(Style::Change change)239 void HTMLPlugInImageElement::willRecalcStyle(Style::Change change) 240 240 { 241 241 // Make sure style recalcs scheduled by a child shadow tree don't trigger reconstruction and cause flicker. 242 242 if (change == Style::NoChange && styleValidity() == Style::Validity::Valid) 243 return true;243 return; 244 244 245 245 // FIXME: There shoudn't be need to force render tree reconstruction here. … … 247 247 if (!useFallbackContent() && needsWidgetUpdate() && renderer() && !isImageType() && (displayState() != DisplayingSnapshot)) 248 248 invalidateStyleAndRenderersForSubtree(); 249 return true;250 249 } 251 250 -
trunk/Source/WebCore/html/HTMLPlugInImageElement.h
r208828 r208971 118 118 RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) override; 119 119 bool childShouldCreateRenderer(const Node&) const override; 120 boolwillRecalcStyle(Style::Change) final;120 void willRecalcStyle(Style::Change) final; 121 121 void didAttachRenderers() final; 122 122 void willDetachRenderers() final; -
trunk/Source/WebCore/style/StyleTreeResolver.cpp
r208743 r208971 407 407 element.resetComputedStyle(); 408 408 409 if (element.hasCustomStyleResolveCallbacks()) { 410 if (!element.willRecalcStyle(parent.change)) { 411 it.traverseNextSkippingChildren(); 412 continue; 413 } 414 } 409 if (element.hasCustomStyleResolveCallbacks()) 410 element.willRecalcStyle(parent.change); 415 411 416 412 auto elementUpdate = resolveElement(element); -
trunk/Source/WebCore/svg/SVGElement.cpp
r208001 r208971 300 300 } 301 301 302 boolSVGElement::willRecalcStyle(Style::Change change)302 void SVGElement::willRecalcStyle(Style::Change change) 303 303 { 304 304 if (!m_svgRareData || styleResolutionShouldRecompositeLayer()) 305 return true;305 return; 306 306 // If the style changes because of a regular property change (not induced by SMIL animations themselves) 307 307 // reset the "computed style without SMIL style properties", so the base value change gets reflected. 308 308 if (change > Style::NoChange || needsStyleRecalc()) 309 309 m_svgRareData->setNeedsOverrideComputedStyleUpdate(); 310 return true;311 310 } 312 311 -
trunk/Source/WebCore/svg/SVGElement.h
r207458 r208971 171 171 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGElement*); 172 172 173 boolwillRecalcStyle(Style::Change) override;173 void willRecalcStyle(Style::Change) override; 174 174 175 175 class InstanceInvalidationGuard; -
trunk/Source/WebCore/svg/SVGUseElement.cpp
r208705 r208971 180 180 } 181 181 182 boolSVGUseElement::willRecalcStyle(Style::Change change)182 void SVGUseElement::willRecalcStyle(Style::Change change) 183 183 { 184 184 // FIXME: Shadow tree should be updated before style recalc. 185 185 if (m_shadowTreeNeedsUpdate) 186 186 updateShadowTree(); 187 returnSVGGraphicsElement::willRecalcStyle(change);187 SVGGraphicsElement::willRecalcStyle(change); 188 188 } 189 189 -
trunk/Source/WebCore/svg/SVGUseElement.h
r206903 r208971 63 63 void parseAttribute(const QualifiedName&, const AtomicString&) override; 64 64 void svgAttributeChanged(const QualifiedName&) override; 65 boolwillRecalcStyle(Style::Change) override;65 void willRecalcStyle(Style::Change) override; 66 66 RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) override; 67 67 void toClipPath(Path&) override;
Note: See TracChangeset
for help on using the changeset viewer.