summaryrefslogtreecommitdiffstats
path: root/dom/base/CustomElementRegistry.h
Commit message (Collapse)AuthorAgeLines
* Bug 1334044: Replace detached callback (v0) with disconnected callback (v1).Gaming4JC2020-01-26-2/+3
| | | | Tag UXP Issue #1344
* Bug 1334043 - Part 2: Make nsContentUtils::EnqueueLifecycleCallback static.Gaming4JC2020-01-26-20/+13
| | | | | | We make nsContentUtils::EnqueueLifecycleCallback static so that it can be called without a window object. To achive this, we also make CustomElementReaction not taking a CustomElementRegistry in the constructor, as it can call Upgrade statically. Tag UXP Issue #1344
* Bug 1392970 - Part 1: Make CustomElementDefinition ref-counted and put it in ↵Gaming4JC2020-01-26-2/+25
| | | | | | CustomElementData. Tag UXP Issue #1344
* Bug 1301024 - Part 2: Implement create an element steps.Gaming4JC2020-01-26-1/+1
| | | | Tag UXP Issue #1344
* Bug 1334051 - Part 2: Invoke attributeChangedCallback only if attribute name ↵Gaming4JC2020-01-26-1/+15
| | | | | | | | | | | | | | is in the observed attribute list. We call attributeChangedCallback in two cases: 1. When any of the attributes in the observed attribute list has changed, appended, removed, or replaced. 2. When upgrading an element, for each attribute in element's attribute list that is in the observed attribute list. Note: w/ Fixup for not implementing an API Enhancement Bug 1363481. Tag UXP Issue #1344
* Bug 1334051 - Part 1: Include namespace in attributeChangedCallback.Gaming4JC2020-01-26-0/+1
| | | | | | | Per spec [1], we should include namesapce in attributeChangedCallback argurment list. [1] https://html.spec.whatwg.org/multipage/custom-elements.html#concept-upgrade-an-element, step 3 Tag UXP Issue #1344
* Bug 1299363 - Part 5-2: Implement new upgrade steps.Gaming4JC2020-01-26-7/+23
| | | | Tag UXP Issue #1344
* Bug 1299363 - Part 4: Hold a pointer of ElementQueue in ReactionsStack instead.Gaming4JC2020-01-26-2/+2
| | | | | | | | 1. It is possible that invoking a reaction triggers pushing a new ElementQueue into ReactionStack (e.g., calling define() in constructor which probably enqueue another upgrade reaction), and the reference of ElementQueue passed to InvokeReactions becomes invalid due to the memmove in nsTArray implementation. 2. And we get another benefit from this is memmove becomes faster. Tag UXP Issue #1344
* Bug 1299363 - Part 3: Remove unused argument in UpgradeCandidates.Gaming4JC2020-01-26-2/+1
| | | | Tag UXP Issue #1344
* Bug 1299363 - Part 1: Implement construction stack.Gaming4JC2020-01-26-2/+4
| | | | Tag UXP Issue #1344
* Bug 1315885 - Part 4: Implement callback reaction for custom element reactions.Gaming4JC2020-01-26-27/+40
| | | | | | Note: Skipped SyncInvokeReactions since it is removed in CE v1, waste of time. Tag UXP Issue #1344
* Bug 1325279 - Put the reaction queue in CustomElementData structure instead ↵Gaming4JC2020-01-26-12/+9
| | | | | | | | of using a map; Bug 1347446 makes accessing ElementReactionQueue becomes a bit non-trival (have to get it via DocGroup). Since bug 1359346 already refactors the creation time of CustomElementData, ReactionQueue can also be put into CustomElementData, then we can just get ReactionQueue from Element. Tag UXP Issue #1344
* Bug 1359346 - Implement custom element state;Gaming4JC2020-01-26-0/+13
| | | | | | https://dom.spec.whatwg.org/#concept-element-custom-element-state Tag UXP Issue #1344
* Bug 1309147 - Part 5: Eliminate performance cliff when accessing CEReactions ↵Gaming4JC2020-01-26-3/+10
| | | | | | code. Tag UXP Issue #1344
* Bug 1347446 - Move custom element reactions stack to DocGroup.Gaming4JC2020-01-26-70/+87
| | | | Tag UXP Issue #1344
* Bug 1341693 - Don't need to check GetDocShell() when creating ↵Gaming4JC2020-01-26-4/+3
| | | | | | CustomElementRegistry; Tag UXP Issue #1344
* Bug 1309184 - Implement upgrade reaction for custom element reactions.Gaming4JC2020-01-26-0/+110
| | | | Tag UXP Issue #1344
* Bug 1274159 - Part 2-2: Support HTMLConstructor WebIDL extended attribute ↵Gaming4JC2020-01-26-0/+7
| | | | | | for custom elements; Tag UXP Issue #1344
* Bug 1274159 - Part 1: Support looking up definitions by using constructor as ↵Gaming4JC2020-01-26-1/+14
| | | | | | a key; Tag UXP Issue #1344
* Add m-esr52 at 52.6.0Matt A. Tobin2018-02-02-0/+259