12022-02-25 Said Abou-Hallawa <said@apple.com>
2
3 setNeedsLayout() should not be called when changing the SVG properties
4 https://bugs.webkit.org/show_bug.cgi?id=230296
5
6 Reviewed by NOBODY (OOPS!).
7
8 WIP
9
10 * rendering/svg/RenderSVGImage.cpp:
11 (WebCore::RenderSVGImage::imageChanged):
12 * rendering/svg/RenderSVGResource.cpp:
13 (WebCore::removeFromCacheAndInvalidateDependencies):
14 * rendering/svg/SVGResourcesCache.cpp:
15 (WebCore::SVGResourcesCache::removeRendererFromResources):
16 * rendering/svg/SVGResourcesCache.h:
17 * rendering/updating/RenderTreeUpdater.cpp:
18 (WebCore::RenderTreeUpdater::updateRenderTree):
19 * svg/SVGAnimateMotionElement.cpp:
20 (WebCore::SVGAnimateMotionElement::applyResultsToTarget):
21 * svg/SVGCircleElement.cpp:
22 (WebCore::SVGCircleElement::svgAttributeChanged):
23 * svg/SVGClipPathElement.cpp:
24 (WebCore::SVGClipPathElement::svgAttributeChanged):
25 * svg/SVGComponentTransferFunctionElement.cpp:
26 (WebCore::SVGComponentTransferFunctionElement::svgAttributeChanged):
27 * svg/SVGElement.cpp:
28 (WebCore::SVGElement::commitPropertyChange):
29 (WebCore::SVGElement::setPresentationalHintStyleIsDirty):
30 (WebCore::SVGElement::setNeedsParentAndResourceInvalidation):
31 (WebCore::SVGElement::invalidateParentAndResourceIfNeeded):
32 * svg/SVGElement.h:
33 (WebCore::SVGElement::setAnimatedSVGAttributesAreDirty):
34 (WebCore::SVGElement::invalidateSVGAttributes): Deleted.
35 (WebCore::SVGElement::invalidateSVGPresentationalHintStyle): Deleted.
36 * svg/SVGEllipseElement.cpp:
37 (WebCore::SVGEllipseElement::svgAttributeChanged):
38 * svg/SVGFEBlendElement.cpp:
39 (WebCore::SVGFEBlendElement::svgAttributeChanged):
40 * svg/SVGFEColorMatrixElement.cpp:
41 (WebCore::SVGFEColorMatrixElement::svgAttributeChanged):
42 * svg/SVGFEComponentTransferElement.cpp:
43 (WebCore::SVGFEComponentTransferElement::svgAttributeChanged):
44 * svg/SVGFEComponentTransferElement.h:
45 * svg/SVGFECompositeElement.cpp:
46 (WebCore::SVGFECompositeElement::svgAttributeChanged):
47 * svg/SVGFEConvolveMatrixElement.cpp:
48 (WebCore::SVGFEConvolveMatrixElement::setOrder):
49 (WebCore::SVGFEConvolveMatrixElement::setKernelUnitLength):
50 (WebCore::SVGFEConvolveMatrixElement::svgAttributeChanged):
51 * svg/SVGFEDiffuseLightingElement.cpp:
52 (WebCore::SVGFEDiffuseLightingElement::svgAttributeChanged):
53 * svg/SVGFEDisplacementMapElement.cpp:
54 (WebCore::SVGFEDisplacementMapElement::svgAttributeChanged):
55 * svg/SVGFEDropShadowElement.cpp:
56 (WebCore::SVGFEDropShadowElement::setStdDeviation):
57 (WebCore::SVGFEDropShadowElement::svgAttributeChanged):
58 * svg/SVGFEGaussianBlurElement.cpp:
59 (WebCore::SVGFEGaussianBlurElement::setStdDeviation):
60 (WebCore::SVGFEGaussianBlurElement::svgAttributeChanged):
61 * svg/SVGFEImageElement.cpp:
62 (WebCore::SVGFEImageElement::buildPendingResource):
63 (WebCore::SVGFEImageElement::svgAttributeChanged):
64 (WebCore::SVGFEImageElement::notifyFinished):
65 * svg/SVGFELightElement.cpp:
66 (WebCore::SVGFELightElement::childrenChanged):
67 * svg/SVGFEMergeNodeElement.cpp:
68 (WebCore::SVGFEMergeNodeElement::svgAttributeChanged):
69 * svg/SVGFEMorphologyElement.cpp:
70 (WebCore::SVGFEMorphologyElement::setRadius):
71 (WebCore::SVGFEMorphologyElement::svgAttributeChanged):
72 * svg/SVGFEOffsetElement.cpp:
73 (WebCore::SVGFEOffsetElement::svgAttributeChanged):
74 * svg/SVGFESpecularLightingElement.cpp:
75 (WebCore::SVGFESpecularLightingElement::svgAttributeChanged):
76 * svg/SVGFETileElement.cpp:
77 (WebCore::SVGFETileElement::svgAttributeChanged):
78 * svg/SVGFilterElement.cpp:
79 (WebCore::SVGFilterElement::svgAttributeChanged):
80 * svg/SVGFilterPrimitiveStandardAttributes.cpp:
81 (WebCore::SVGFilterPrimitiveStandardAttributes::svgAttributeChanged):
82 (WebCore::SVGFilterPrimitiveStandardAttributes::childrenChanged):
83 (WebCore::invalidateFilterPrimitiveParent):
84 * svg/SVGFilterPrimitiveStandardAttributes.h:
85 (WebCore::SVGFilterPrimitiveStandardAttributes::invalidate): Deleted.
86 * svg/SVGForeignObjectElement.cpp:
87 (WebCore::SVGForeignObjectElement::svgAttributeChanged):
88 * svg/SVGGeometryElement.cpp:
89 (WebCore::SVGGeometryElement::svgAttributeChanged):
90 * svg/SVGGradientElement.cpp:
91 (WebCore::SVGGradientElement::svgAttributeChanged):
92 * svg/SVGGraphicsElement.cpp:
93 (WebCore::SVGGraphicsElement::svgAttributeChanged):
94 * svg/SVGImageElement.cpp:
95 (WebCore::SVGImageElement::svgAttributeChanged):
96 * svg/SVGLineElement.cpp:
97 (WebCore::SVGLineElement::svgAttributeChanged):
98 * svg/SVGLinearGradientElement.cpp:
99 (WebCore::SVGLinearGradientElement::svgAttributeChanged):
100 * svg/SVGMarkerElement.cpp:
101 (WebCore::SVGMarkerElement::svgAttributeChanged):
102 * svg/SVGMaskElement.cpp:
103 (WebCore::SVGMaskElement::svgAttributeChanged):
104 * svg/SVGPathElement.cpp:
105 (WebCore::SVGPathElement::svgAttributeChanged):
106 * svg/SVGPatternElement.cpp:
107 (WebCore::SVGPatternElement::svgAttributeChanged):
108 * svg/SVGPolyElement.cpp:
109 (WebCore::SVGPolyElement::svgAttributeChanged):
110 * svg/SVGRadialGradientElement.cpp:
111 (WebCore::SVGRadialGradientElement::svgAttributeChanged):
112 * svg/SVGRectElement.cpp:
113 (WebCore::SVGRectElement::svgAttributeChanged):
114 * svg/SVGSVGElement.cpp:
115 (WebCore::SVGSVGElement::svgAttributeChanged):
116 (WebCore::SVGSVGElement::scrollToFragment):
117 (WebCore::SVGSVGElement::resetScrollAnchor):
118 * svg/SVGStopElement.cpp:
119 (WebCore::SVGStopElement::svgAttributeChanged):
120 * svg/SVGTRefElement.cpp:
121 (WebCore::SVGTRefElement::svgAttributeChanged):
122 * svg/SVGTextContentElement.cpp:
123 (WebCore::SVGTextContentElement::svgAttributeChanged):
124 * svg/SVGTextPathElement.cpp:
125 (WebCore::SVGTextPathElement::svgAttributeChanged):
126 * svg/SVGTextPositioningElement.cpp:
127 (WebCore::SVGTextPositioningElement::svgAttributeChanged):
128 * svg/SVGUseElement.cpp:
129 (WebCore::SVGUseElement::svgAttributeChanged):
130 * svg/SVGViewElement.cpp:
131 (WebCore::SVGViewElement::svgAttributeChanged):
132 * svg/properties/SVGAttributeAnimator.cpp:
133 (WebCore::SVGAttributeAnimator::invalidateStyle):
134