Chromium Code Reviews
DescriptionThis introduces one place, Microtask::performCheckpoint, to add checkpoint steps and teleports all calls to MutationObservers::deliverAllMutations to their new home.
It pulls the callback dispatching behavior that was left in CustomElementRegistry into its own class, CustomElementCallbackDispatcher. Custom Elements have evolved and how involve four callbacks with three timing semantics. CustomElementCallbackDispatcher will be the traffic cop when the latter three kinds of callbacks are implemented.
This is fixes two bad behaviors (1. run Custom Element lifecycle callbacks and Mutation Observers in an inconsistent order depending on callsite; 2. allow pending lifecycle callbacks, or mutation events begot by lifecycle callbacks, to persist until the next microtask.)
BUG=234509
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152982
Patch Set 1 #
Total comments: 1
Patch Set 2 : Mix Mutation Observer and Custom Element callbacks until a gooey consistency. #Patch Set 3 : Header minimization. #
Total comments: 2
Patch Set 4 : Patch for landing. #
Messages
Total messages: 12 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||