summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/layout/svg/layout_svg_text_path.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/layout/svg/layout_svg_text_path.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/layout/svg/layout_svg_text_path.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/core/layout/svg/layout_svg_text_path.cc b/chromium/third_party/blink/renderer/core/layout/svg/layout_svg_text_path.cc
index bcf433726ee..1290e22820c 100644
--- a/chromium/third_party/blink/renderer/core/layout/svg/layout_svg_text_path.cc
+++ b/chromium/third_party/blink/renderer/core/layout/svg/layout_svg_text_path.cc
@@ -62,8 +62,7 @@ bool LayoutSVGTextPath::IsChildAllowed(LayoutObject* child,
std::unique_ptr<PathPositionMapper> LayoutSVGTextPath::LayoutPath() const {
const auto& text_path_element = To<SVGTextPathElement>(*GetNode());
Element* target_element = SVGURIReference::TargetElementFromIRIString(
- text_path_element.HrefString(),
- text_path_element.TreeScopeForIdResolution());
+ text_path_element.HrefString(), text_path_element.OriginatingTreeScope());
const auto* path_element = DynamicTo<SVGPathElement>(target_element);
if (!path_element)