DescriptionEliminate SVGUseElement::referencedScope()
During "shadow tree fixup" (SVGUseElement::expand*) we can use the
document of the original (corresponding) element rather than
referencedScope(), because the Document of those elements will be the
external or the "local" respectively depending on source for the initial
clone operation.
This leaves a few users in buildPendingResource() which can be
eliminated by folding the method into it.
Hopefully this will also allow future cleanups to
isExternalURIReference, since now it's not called unnecessarily for each
nested <use>. (Possibly minor perf effect from eliminating the calls to
referencedScope().)
BUG=589682
Committed: https://crrev.com/c427062580ade2dde463ff0c51f33717099e6c9c
Cr-Commit-Position: refs/heads/master@{#379074}
Patch Set 1 #
Depends on Patchset: Messages
Total messages: 8 (3 generated)
|