DescriptionDon't dispatch '(SVG)load' to ancestors of <svg:image> after doc. 'load'
When an <svg:image> is inserted after document load has been dispatched,
we don't want to dispatch 'load' again to any ancestor 'svg' roots (inner
or outer). Hence only dispatch an event to the element itself in this
condition.
Take the opportunity to clean up SVGElement::sendSVGLoadEventIfPossible
a bit, by splitting it into send-to-self and send-to-self-and-ancestors
methods (most callers call the former). Also unravel the control-flow of
the ancestors-version a bit compared to the old version.
BUG=372946
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177814
Patch Set 1 #
Total comments: 3
Patch Set 2 : Recursion-based sendSVG...AncestorChain...; Additional tests. #
Total comments: 4
Patch Set 3 : Drop assert_true; use toSVGElement. #
Messages
Total messages: 10 (0 generated)
|