DescriptionRevamp asynchronous (load) event dispatching for SVG elements
Refactor asynchronous event dispatching for SVG elements to use
EventSender instead of the home-grown mechanism. This eliminates the
need for one timer (96 bytes on 64-bit targets) per <use> and <style>
element.
In SVGStyleElement, align with HTMLStyleElement, by adding an
implementation of Node::notifyLoadedSheetAndAllCriticalSubresources(),
replacing SVGStyleElement::sendSVGErrorEventAsynchronously().
The call in SVGUseElement::insertedInto is dropped, because it would
never cause an event to be dispatched (an event will only be dispatched
when the <use> is "structurally external"). There's a slight change in
behavior for SVGUseElement, since the event is now always dispatched,
regardless of existence of handlers.
Drop sendSVGLoadEventIfPossibleAsynchronously(), svgLoadEventTimer()
and svgLoadEventTimerFired() from SVGElement because they are now
unused.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=195678
Patch Set 1 #
Total comments: 2
Messages
Total messages: 7 (2 generated)
|