summaryrefslogtreecommitdiffstats
path: root/dom/base
Commit message (Collapse)AuthorAgeLines
* Issue #1629 - Part 2: Implement the Explicitly Enabled flag.athenian2002020-08-13-6/+10
| | | | | | | | | | | | | | | | This part of the bug was significantly complicated by the following major refactors: https://bugzilla.mozilla.org/show_bug.cgi?id=1456435 https://bugzilla.mozilla.org/show_bug.cgi?id=1459498 As best as I can tell, we just need to implement the explicitly enabled flag on every instance of GetStyleSheetInfo, make sure aIsExplicitlyEnabled is false in every situation except the one where the disabled content attribute is removed from a link element, and enable alternate stylesheets if this flag is set on them. So we take the explicitly enabled flag as an input to PrepareSheet, and also add it to LoadStyleLink and LoadInlineStyle. I also decided not to defer loading of alternate stylesheets that have been explicitly enabled.
* Issue #618 - Remove eager instantiation - Debug follow upGaming4JC2020-07-11-1/+2
| | | | | | | The added debug assertion did not take into account microtask refactoring done in BZ 1405821. Resulting in error: no member named 'IsInMicroTask' in 'nsContentUtils'. This resolves the error.
* Issue #618 - Slightly improve module scripting tests.Moonchild2020-07-04-16/+44
| | | | Ref: BZ 1388728
* Issue #618 - Remove eager instantiationMoonchild2020-07-04-0/+1
| | | | | This backs out the stuff added in Bug 1295978. Ref: BZ 1295978, 1388728
* Issue #618 - Match JSAPI names with the changes in ↵Moonchild2020-07-03-10/+10
| | | | | | 9ca74147225eed305e28c7887f9b2251aeeb0f36 Ref: BZ 1388728
* Issue #1603 - Part 2: Split some classes out of ScriptLoader.cppMoonchild2020-07-01-0/+1
| | | | | | | This splits ScriptLoader up the same way Mozilla did with the exception of ScriptRequest due to the fact that ScriptLoader and ScriptRequest are interdependent and would create a circular dependency if split apart when not using unified building.
* Issue #1603 - Part 1: Reorganize ScriptLoader/ScriptElementMoonchild2020-06-30-5695/+30
| | | | | | - Moves scripting parts of DOM into 'dom/script' - Renames nsScript{Loader/Element} to Script{Loader/Element} - Adjusts all callers
* Issue #1602 - Make sure we have a JSObject before trying to get global.wolfbeast2020-06-27-1/+7
| | | | | | | | Dynamic script loading/unloading (thank you modules) can yank the script out from under us before the JS API for it is initialized, leading to null deref crashes. This adds a simple check if the passed-in object is sane and present. Resolves #1602
* Bug 1429656 - Implement ShadowRoot.activeElementMatt A. Tobin2020-06-13-17/+86
| | | | Tag #1375
* Bug 1426494 - Share more code between nsIDocument and ShadowRootMatt A. Tobin2020-06-13-314/+360
| | | | Tag #1375
* Bug 1355787 - nsIdentifierMapEntry should let one to use either strings or ↵Matt A. Tobin2020-06-13-21/+75
| | | | | | atoms as keys to avoid slow string assignments when possible. Tag #1375
* Bug 1217436 - Make nsIdentifierMapEntry::mIdContentList an AutoTArray to ↵Matt A. Tobin2020-06-13-4/+12
| | | | | | save an allocation Tag #1375
* Issue #1587 - Part 4: Implement FetchObserverMoonchild2020-06-11-0/+2
|
* Issue #1585 - Replace node.rootNode with node.getRootNode()Moonchild2020-06-10-4/+31
| | | | | | | This removes the (default disabled) node.rootNode readonly attribute and replaces it with a node.getRootNode() function per WhatWG spec discussion. Based on work by John Dai <jdai@mozilla.com>
* Issue #439 - Remove, fix and clean up automated testsMoonchild2020-06-08-4/+0
| | | | | | | With the big amount of code churn around DOM a lot of tests broke severely enough that they caused build bustage. This commit cleans up, removes or otherwise fixes tests that are broken, no longer relevant or obsolete.
* Issue #1525 - Kill marquee elementMoonchild2020-06-01-1006/+2
| | | | | | * Remove marquee code * Regenerate HTML Elements/parser code for Removal of Marquee. Co-authored-by: Gaming4JC <g4jc@hyperbola.info>
* Revert "Issue #1564 - Fix debug build dependencies for g4jc"wolfbeast2020-05-27-1/+0
| | | | This reverts commit 101c06946e6174734e494d260fa53d78255fea89.
* Issue #1564 - Fix debug build dependencies for g4jcwolfbeast2020-05-26-0/+1
|
* Issue #1564 - Split off nsIdentifierMapEntry in its own headerwolfbeast2020-05-25-146/+176
| | | | + Fix dependency fallout from removing nsDocument.h from ShadowRoot.h
* Issue #1557 - Allow event dispatch on disabled form controls.athenian2002020-05-21-1/+2
| | | | | | | | Based on https://bugzilla.mozilla.org/show_bug.cgi?id=329509 This seems to resolve #1356 without causing #1557. Also reverts previous changes as they no longer appear to serve a purpose.
* Issue #1543 - Align <img> with no src to the updated spec.Moonchild2020-05-11-1/+1
|
* Issue #457 - Fix warning about inline ↵adeshkp2020-05-05-0/+1
| | | | nsINode::GetFlattenedTreeParentNodeForStyle being undefined
* Issue #1375 - Merge CustomElements pref with Webcomponents PrefMatt A. Tobin2020-04-17-2/+2
|
* Issue #1375 - Fix IsWebComponentsEnabled checksMatt A. Tobin2020-04-17-64/+28
|
* Bug 1425769 - Base class for ShadowRoot and Document to manage style stateMatt A. Tobin2020-04-17-285/+240
| | | | Tag #1375
* Issue #80 - De-unify dom/baseMatt A. Tobin2020-04-17-2/+41
| | | | Tag #1375
* Bug 1348481 - Part 1b: Generalize FindDocStyleSheetInsertionPoint so it ↵Matt A. Tobin2020-04-17-9/+10
| | | | | | doesn't require an array of RefPtrs Tag #1375
* Bug 1417829 - Remove unresolved pseudoclassMatt A. Tobin2020-04-17-3/+0
| | | | Tag #1375
* Bug 1426503 - Remove DestInsertionPoints stuffMatt A. Tobin2020-04-17-166/+0
| | | | Tag #1375
* Bug 1426536 - Remove nsContentUtils::IsContentInsertionPointMatt A. Tobin2020-04-17-112/+23
| | | | Tag #1375
* Bug 1409976 - Add `slotchange` eventMatt A. Tobin2020-04-17-14/+150
| | | | | | | * Add support for `slotchange` event * Signal `slotchange` when slot's assigned nodes changes Tag #1375
* Bug 1425441 - Move relatedTarget to WidgetEventMatt A. Tobin2020-04-17-1/+1
| | | | Tag #1375
* Bug 1412775 - Implement Event.composedPathMatt A. Tobin2020-04-17-14/+24
| | | | Tag #1375
* Bug 1422197 - Add fast path to get DocGroup in binding code for [CEReactions]Matt A. Tobin2020-04-17-1/+56
| | | | Tag #1375
* Bug 1422931 - Fix crash with slot element and make webcomponents preference ↵Matt A. Tobin2020-04-17-3/+43
| | | | | | per-doc Tag #1375
* Bug 1419799 - Fix nsContentUtils::IsInSameAnonymousTree in Shadow DOMMatt A. Tobin2020-04-17-11/+19
| | | | Tag #1375
* Bug 1413619 - Fix insertion point computation when display: contents pseudos ↵Matt A. Tobin2020-04-17-16/+26
| | | | | | are involved. Tag #1375
* Bug 1409975 - Implement node distribution for shadow tree slotsMatt A. Tobin2020-04-17-66/+387
| | | | | | | | | | * Implementation for assignedNodes * Include slots in the flat tree * Fix event get-the-parent algorithm for a node * Update and add reftests for Shadow DOM v1 * Update web platform tests expectations Tag #1375
* Bug 1418002 - Remove HTMLContentElementMatt A. Tobin2020-04-17-325/+12
| | | | Tag #1375
* Bug 1416999 - Remove document.registerElementMatt A. Tobin2020-04-17-476/+17
| | | | Tag #1375
* Bug 1411878 - Support Element.shadowRoot and Element.assignedSlot / ↵Matt A. Tobin2020-04-17-0/+64
| | | | | | TextNode.assignedSlot on closed shadow root Tag #1375
* Bug 1404842 - Implement Element.attachShadow and Element.slotMatt A. Tobin2020-04-17-5/+105
| | | | Tag #1375
* Bug 1411754 - Rename PresShell::DestroyFramesFor to DestroyFramesForAndRestyleMatt A. Tobin2020-04-17-4/+3
| | | | Tag #1375
* Bug 1404789 - Stop reconstructing frames for the whole shadow root each time ↵Matt A. Tobin2020-04-17-125/+220
| | | | | | | | | | | | content is inserted in a shadow tree * Cleanup a bit the ShadowRoot code * Privatize ShadowRoot methods * When the shadow tree distribution changes, post a restyle + reframe * Simplify ShadowRoot::IsPooledNode * Be a bit better at detecting distribution changes Tag #1375
* Bug 1408341 - Implement assignedSlot on Element and TextMatt A. Tobin2020-04-17-0/+73
| | | | Tag #1375
* Bug 1402941 - Add HTMLSlotElementMatt A. Tobin2020-04-17-0/+1
| | | | Tag #1375
* Bug 1401097 - Simplify gHTMLElements and remove redundant conditions in ↵Matt A. Tobin2020-04-17-6/+1
| | | | | | nsXHTMLContentSerializer::LineBreakAfterClose() Tag #1375
* Bug 1396584 - Remove support for multiple ShadowRootsMatt A. Tobin2020-04-17-371/+42
| | | | Tag #1375
* Issue #1375 - Stop largely using the parser serviceMatt A. Tobin2020-04-17-74/+27
| | | | | | | | | This is based on Bug 1395828 * Add nsHTMLElement::IsBlock() * Rename nsHTMLTags methods * Remove AssertParserServiceIsCorrect() * Remove most uses of nsIParserService/nsParserService
* Bug 1396568 - Make DocumentFragment::mHost a strong reference (so that ↵Matt A. Tobin2020-04-17-8/+14
| | | | | | ShadowRoot.host doesn't become null) Tag #1375