summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| * | | Bug 1410790 - Add more assertion in ↵Gaming4JC2020-01-26-31/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CustomElementData::SetCustomElementDefinition and GetCustomElementDefinition; This is a follow-up patch for bug 1392970. Since we only set CustomElementDefinition on a custom element which is custom, we could add more assertion to ensure that. Tag UXP Issue #1344
| * | | Bug 1366241 - Change memory layout of element name and attribute name hashes ↵Gaming4JC2020-01-26-981/+1019
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in HTML parser from sorted to level order BST in order to take advantage of cache during lookup. HTML Regen. Tag UXP Issue #1344
| * | | Bug 1366241 - Change memory layout of element name and attribute name hashes ↵Gaming4JC2020-01-26-1164/+1164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from sorted to level order BST in order to take advantage of cache during lookup. Java Regen. Tag UXP Issue #1344
| * | | Bug 1366241 - Change memory layout of element name and attribute name hashes ↵Gaming4JC2020-01-26-10/+108
| | | | | | | | | | | | | | | | | | | | | | | | from sorted to level order BST in order to take advantage of cache during lookup. Tag UXP Issue #1344
| * | | Bug 1358037 - Inline the methods of nsHtml5ElementName and nsHtml5AttributeName.Gaming4JC2020-01-26-2048/+2256
| | | | | | | | | | | | | | | | | | | | | | | | HTML Regen. Tag UXP Issue #1344
| * | | Bug 1358037 - Inline the methods of nsHtml5ElementName and nsHtml5AttributeName.Gaming4JC2020-01-26-133/+134
| | | | | | | | | | | | | | | | | | | | | | | | Manual changes Tag UXP Issue #1344
| * | | Bug 1358037 - Inline the methods of nsHtml5ElementName and nsHtml5AttributeName.Gaming4JC2020-01-26-80/+72
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1355479 - Flatten attribute storage in the HTML parser to AutoTArray to ↵Gaming4JC2020-01-26-71/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | avoid malloc. HTML Regen. Tag UXP Issue #1344
| * | | Bug 1355479 - Flatten attribute storage in the HTML parser to AutoTArray to ↵Gaming4JC2020-01-26-179/+212
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | avoid malloc. - Removes nsHtml5ReleasableAttributeName - Adds nsHtml5AttributeEntry.h - Makes nsHtml5HtmlAttributes no longer gentered. Tag UXP Issue #1344
| * | | Bug 1355479 - Remove isindex on the Java side and allow the C++ side to ↵Gaming4JC2020-01-26-336/+180
| | | | | | | | | | | | | | | | | | | | | | | | reduce malloc in attribute handling. Tag UXP Issue #1344
| * | | Bug 1355769 - Avoid malloc for nsHtml5ElementName when processing a ↵Gaming4JC2020-01-26-50/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | non-interned element name. Fix build - Remove no longer used ReleaseableElement Tag UXP Issue #1344
| * | | Bug 1355769 - Avoid malloc for nsHtml5ElementName when processing a ↵Gaming4JC2020-01-26-64/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | non-interned element name. HTML Regen. Tag UXP Issue #1344
| * | | Bug 1355769 - Avoid malloc for nsHtml5ElementName when processing a ↵Gaming4JC2020-01-26-90/+109
| | | | | | | | | | | | | | | | | | | | | | | | non-interned element name. Tag UXP Issue #1344
| * | | Bug 1355493 - Tweak bufToHash() and reduce the number of pre-interned elements.Gaming4JC2020-01-26-5186/+5214
| | | | | | | | | | | | | | | | | | | | | | | | HTML Regen. Tag UXP Issue #1344
| * | | Bug 1355493 - Tweak bufToHash() and reduce the number of pre-interned elements.Gaming4JC2020-01-26-2641/+2641
| | | | | | | | | | | | | | | | | | | | | | | | Java Regen. Tag UXP Issue #1344
| * | | Bug 1355493 - Tweak bufToHash() and reduce the number of pre-interned elements.Gaming4JC2020-01-26-36/+83
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1352082 - Avoid shifting a signed integer left in C++.Gaming4JC2020-01-26-10/+10
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1352082 - Avoid shifting a signed integer left in C++.Gaming4JC2020-01-26-9/+53
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1352290 - Add assertion to CustomElementReactionsStack::Enqueue to ↵Gaming4JC2020-01-26-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | ensure upgrade reactions aren't scheduled to BackupQueue; Tag UXP Issue #1344
| * | | Bug 1407937 - Move mDefinition from CustomElementReacion to ↵Gaming4JC2020-01-26-19/+7
| | | | | | | | | | | | | | | | | | | | | | | | CustomElementUpgradeReaction; Tag UXP Issue #1344
| * | | Bug 1406297 - Fix Document.createElement must report an exception.Gaming4JC2020-01-26-9/+13
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1319342 - Clone a node should enqueue an upgrade reaction.Gaming4JC2020-01-26-97/+23
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1121994 - Implement adopted callback for custom elements.Gaming4JC2020-01-26-130/+76
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1334044: Replace detached callback (v0) with disconnected callback (v1).Gaming4JC2020-01-26-84/+28
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1334043 - Part 3: Update tests for connected callback.Gaming4JC2020-01-26-84/+6
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1334043 - Part 2: Make nsContentUtils::EnqueueLifecycleCallback static.Gaming4JC2020-01-26-75/+41
| | | | | | | | | | | | | | | | | | | | | | | | 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 1334043 - Part 1: Replace attached callback (v0) with connected callback ↵Gaming4JC2020-01-26-25/+27
| | | | | | | | | | | | | | | | | | | | | | | | (v1). Tag UXP Issue #1344
| * | | Bug 1392970 - Part 2: Get CustomElementDefinition from CustomElementData ↵Gaming4JC2020-01-26-46/+26
| | | | | | | | | | | | | | | | | | | | | | | | when possible. Tag UXP Issue #1344
| * | | Bug 1392970 - Part 1: Make CustomElementDefinition ref-counted and put it in ↵Gaming4JC2020-01-26-50/+141
| | | | | | | | | | | | | | | | | | | | | | | | CustomElementData. Tag UXP Issue #1344
| * | | Bug 1301024 - Part 2: Implement create an element steps.Gaming4JC2020-01-26-5/+129
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1301024 - Part 1: Set CreateElement/CreateElementNS is attribute.Gaming4JC2020-01-26-0/+8
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1398401 - Add preference check for custom element setup.Gaming4JC2020-01-26-1/+3
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1332233 - prevent resource leak in CustomElementRegistry::Define.Gaming4JC2020-01-26-8/+9
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1334051 - Part 2: Invoke attributeChangedCallback only if attribute name ↵Gaming4JC2020-01-26-71/+222
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-35/+177
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1299363 - Part 5-1: Make the constructor created by ↵Gaming4JC2020-01-26-43/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | document.registerElement() also works with construction stack. So that the old upgrade can also work with new upgrade steps which will be implemented in part 5-2. Tag UXP Issue #1344
| * | | Bug 1353647 - Fix the custom elements v0 upgrade inconsistency;Gaming4JC2020-01-26-15/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are two places doing prototype setup in old upgrade, - If definition comes after JS reflector creation, CustomElementRegistry::Upgrade will do prototype swizzling. - If definition comes before JS reflector creation, Element::WrapObject will set up the prototype. The later one does SubsumesConsideringDomain, but the former doesn't not. This patch is to fix the inconsistency, i.e. the former case should also do SubsumesConsideringDomain. Tag UXP Issue #1344
| * | | Bug 1299363 - Part 4: Hold a pointer of ElementQueue in ReactionsStack instead.Gaming4JC2020-01-26-14/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-5/+3
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1299363 - Part 2: Allow prototype swizzling in html constructor.Gaming4JC2020-01-26-4/+20
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1299363 - Part 1: Implement construction stack.Gaming4JC2020-01-26-13/+30
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1315885 - Part 4: Implement callback reaction for custom element reactions.Gaming4JC2020-01-26-138/+101
| | | | | | | | | | | | | | | | | | | | | | | | Note: Skipped SyncInvokeReactions since it is removed in CE v1, waste of time. Tag UXP Issue #1344
| * | | Bug 1315885 - Part 3: Transfer the ownership of ReactionQueue's entry due to ↵Gaming4JC2020-01-26-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | re-enter CustomElementReactionsStack::InvokeReactions. Tag UXP Issue #1344
| * | | Bug 1315885 - Part 2: Avoid rethrowing exception in CustomElementCallback::Call.Gaming4JC2020-01-26-0/+4
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1315885 - Part 1: Add ShadowRoot CEReactions annotation.Gaming4JC2020-01-26-1/+1
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1340027 - Part 5: Add XSLTProcessor CEReactions annotation.Gaming4JC2020-01-26-2/+2
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1340027 - Part 4: Add DOM parsing CEReactions annotation.Gaming4JC2020-01-26-4/+4
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1340027 - Part 3: Add CSSStyleDeclaration CEReactions annotation.Gaming4JC2020-01-26-3/+3
| | | | | | | | | | | | | | | | Tag UXP Issue #1344
| * | | Bug 1340027 - Part 2: Add HTML CEReactions annotation.Gaming4JC2020-01-26-359/+398
| | | | | | | | | | | | | | | | Tag UXP Issue #1344