DescriptionResolve URL/target reference at a single point in SVGUseElement
The <base> URL can change between the attribute (href) is updated and
the shadow tree constructed. This causes confusion in the target
resolving code since it can produce different results at different
points in time.
Only resolve the URL on changes (to 'href'), extract the fragment
identifier and store whether the reference is local or not.
Refactor the SVGUseElement target element lookup with an eye to
future handling of "fragment-only" (local) URLs.
This makes the externalDocument in
SVGURIReference::targetElementFromIRIString unused, so remove that
codepath and simplify the function accordingly.
This changes behavior from resolving the URL and target element when
needed (depending on when layouts happen), to only when the 'href' is
mutated. This new behavior matches Edge, but not Gecko.
BUG=601203, 470608
Committed: https://crrev.com/91e189ad391cd78854f71f816c08c08e7bc991a4
Cr-Commit-Position: refs/heads/master@{#407128}
Patch Set 1 #Patch Set 2 : Add missing expected file #
Total comments: 2
Patch Set 3 : Test touchups #Messages
Total messages: 17 (12 generated)
|