commit | 39ebf170c065db29bc79b65ca775f932617b48ed | [log] [tgz] |
---|---|---|
author | Fredrik Söderquist <fs@opera.com> | Wed Apr 03 15:41:41 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Apr 03 15:41:41 2019 |
tree | d20d062f68ac78d78ef65d0a9c5de286de3ff8e0 | |
parent | 80ab2d7b16587fe6132f6025a368cda5918c4d11 [diff] |
Use pre-resolved resource in SVGPatternElement::ReferencedElement SVGPatternElement::BuildPendingResource() resolves a resource reference for 'href' on the <pattern> element using the TreeScope-based "resource store". SVGPatternElement::ReferencedElement() (re-)resolves the same reference on its own. Because of this inconsistency we could end up having a reference to a LayoutObject in the associated SVGResources object, but not have hooked up a client reference for the (originating) <pattern> element. Use the SVGResource to resolve the target element in ReferencedElement() too so that there's only one source of truth. Bug: 949015 Change-Id: I001c4f9260bdc4599843cd53833b749fd320daa5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1550426 Reviewed-by: Stephen Chenney <schenney@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#647295}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .