summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/svg/svg_svg_element.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/svg/svg_svg_element.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/svg/svg_svg_element.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/chromium/third_party/blink/renderer/core/svg/svg_svg_element.cc b/chromium/third_party/blink/renderer/core/svg/svg_svg_element.cc
index de9fc41823c..d56c473c623 100644
--- a/chromium/third_party/blink/renderer/core/svg/svg_svg_element.cc
+++ b/chromium/third_party/blink/renderer/core/svg/svg_svg_element.cc
@@ -233,7 +233,9 @@ void SVGSVGElement::CollectStyleForPresentationAttribute(
}
}
-void SVGSVGElement::SvgAttributeChanged(const QualifiedName& attr_name) {
+void SVGSVGElement::SvgAttributeChanged(
+ const SvgAttributeChangedParams& params) {
+ const QualifiedName& attr_name = params.name;
bool update_relative_lengths_or_view_box = false;
bool width_or_height_changed =
attr_name == svg_names::kWidthAttr || attr_name == svg_names::kHeightAttr;
@@ -285,7 +287,7 @@ void SVGSVGElement::SvgAttributeChanged(const QualifiedName& attr_name) {
return;
}
- SVGGraphicsElement::SvgAttributeChanged(attr_name);
+ SVGGraphicsElement::SvgAttributeChanged(params);
}
// FloatRect::intersects does not consider horizontal or vertical lines (because
@@ -475,8 +477,8 @@ AffineTransform SVGSVGElement::LocalCoordinateSpaceTransform(
// At the SVG/HTML boundary (aka LayoutSVGRoot), we need to apply the
// localToBorderBoxTransform to map an element from SVG viewport
// coordinates to CSS box coordinates.
- matrix.Multiply(
- To<LayoutSVGRoot>(layout_object)->LocalToBorderBoxTransform());
+ matrix.Multiply(TransformationMatrix(
+ To<LayoutSVGRoot>(layout_object)->LocalToBorderBoxTransform()));
// Drop any potential non-affine parts, because we're not able to convey
// that information further anyway until getScreenCTM returns a DOMMatrix
// (4x4 matrix.)