Title: [275876] trunk/Source/WebCore
- Revision
- 275876
- Author
- [email protected]
- Date
- 2021-04-13 03:17:38 -0700 (Tue, 13 Apr 2021)
Log Message
Skip style update
https://bugs.webkit.org/show_bug.cgi?id=223365
Patch by Rob Buis <[email protected]> on 2021-04-13
Reviewed by Ryosuke Niwa.
Skip style update for getting the SVG bounding box
since boundingClientRect already updated style.
* dom/Element.cpp:
(WebCore::Element::boundingAbsoluteRectWithoutLayout):
* svg/SVGElement.cpp:
(WebCore::SVGElement::getBoundingBox):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (275875 => 275876)
--- trunk/Source/WebCore/ChangeLog 2021-04-13 10:04:22 UTC (rev 275875)
+++ trunk/Source/WebCore/ChangeLog 2021-04-13 10:17:38 UTC (rev 275876)
@@ -1,3 +1,18 @@
+2021-04-13 Rob Buis <[email protected]>
+
+ Skip style update
+ https://bugs.webkit.org/show_bug.cgi?id=223365
+
+ Reviewed by Ryosuke Niwa.
+
+ Skip style update for getting the SVG bounding box
+ since boundingClientRect already updated style.
+
+ * dom/Element.cpp:
+ (WebCore::Element::boundingAbsoluteRectWithoutLayout):
+ * svg/SVGElement.cpp:
+ (WebCore::SVGElement::getBoundingBox):
+
2021-04-13 Youenn Fablet <[email protected]>
SFrameTransform should be able to take array buffer views as input
Modified: trunk/Source/WebCore/dom/Element.cpp (275875 => 275876)
--- trunk/Source/WebCore/dom/Element.cpp 2021-04-13 10:04:22 UTC (rev 275875)
+++ trunk/Source/WebCore/dom/Element.cpp 2021-04-13 10:17:38 UTC (rev 275876)
@@ -1651,7 +1651,7 @@
// Get the bounding rectangle from the SVG model.
SVGElement& svgElement = downcast<SVGElement>(*this);
FloatRect localRect;
- if (svgElement.getBoundingBox(localRect))
+ if (svgElement.getBoundingBox(localRect, SVGLocatable::DisallowStyleUpdate))
quads.append(renderer->localToAbsoluteQuad(localRect));
} else if (auto pair = listBoxElementBoundingBox(*this)) {
renderer = pair.value().first;
Modified: trunk/Source/WebCore/svg/SVGElement.cpp (275875 => 275876)
--- trunk/Source/WebCore/svg/SVGElement.cpp 2021-04-13 10:04:22 UTC (rev 275875)
+++ trunk/Source/WebCore/svg/SVGElement.cpp 2021-04-13 10:17:38 UTC (rev 275876)
@@ -295,6 +295,7 @@
bool SVGElement::getBoundingBox(FloatRect& rect, SVGLocatable::StyleUpdateStrategy styleUpdateStrategy)
{
+ // FIXME: should retrieve the value from the associated RenderObject.
if (is<SVGGraphicsElement>(*this)) {
rect = downcast<SVGGraphicsElement>(*this).getBBox(styleUpdateStrategy);
return true;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes