diff options
author | Moonchild <moonchild@palemoon.org> | 2020-06-14 10:01:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-14 10:01:06 +0000 |
commit | 7cc007d9bf8927fc4ce1d5ea80a843d6edfc17dd (patch) | |
tree | 7b3ba52faca3704faf53d8248cbe130a32481b21 /dom/base/nsDocument.h | |
parent | 59a5adc93415f6d6e8ce4352ba0cd2d34d5e7888 (diff) | |
parent | bbd59105da97200947ae62b2dc949a1130a40d75 (diff) | |
download | UXP-7cc007d9bf8927fc4ce1d5ea80a843d6edfc17dd.tar UXP-7cc007d9bf8927fc4ce1d5ea80a843d6edfc17dd.tar.gz UXP-7cc007d9bf8927fc4ce1d5ea80a843d6edfc17dd.tar.lz UXP-7cc007d9bf8927fc4ce1d5ea80a843d6edfc17dd.tar.xz UXP-7cc007d9bf8927fc4ce1d5ea80a843d6edfc17dd.zip |
Merge pull request #1591 from MoonchildProductions/sr.activeElement-work
Implement ShadowRoot.activeElement
Diffstat (limited to 'dom/base/nsDocument.h')
-rw-r--r-- | dom/base/nsDocument.h | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/dom/base/nsDocument.h b/dom/base/nsDocument.h index 6baf40270..9d7b0aafd 100644 --- a/dom/base/nsDocument.h +++ b/dom/base/nsDocument.h @@ -333,7 +333,6 @@ class nsDocument : public nsIDocument, public: typedef mozilla::dom::Element Element; - using nsIDocument::GetElementsByTagName; typedef mozilla::net::ReferrerPolicy ReferrerPolicy; NS_DECL_CYCLE_COLLECTING_ISUPPORTS @@ -631,6 +630,11 @@ public: // nsIDOMDocumentXBL NS_DECL_NSIDOMDOCUMENTXBL + using mozilla::dom::DocumentOrShadowRoot::GetElementById; + using mozilla::dom::DocumentOrShadowRoot::GetElementsByTagName; + using mozilla::dom::DocumentOrShadowRoot::GetElementsByTagNameNS; + using mozilla::dom::DocumentOrShadowRoot::GetElementsByClassName; + // nsIDOMEventTarget virtual nsresult GetEventTargetParent( mozilla::EventChainPreVisitor& aVisitor) override; @@ -819,10 +823,7 @@ public: virtual void ResetScrolledToRefAlready() override; virtual void SetChangeScrollPosWhenScrollingToRef(bool aValue) override; - virtual Element *GetElementById(const nsAString& aElementId) override; - virtual const nsTArray<Element*>* GetAllElementsForId(const nsAString& aElementId) const override; - - virtual Element *LookupImageElement(const nsAString& aElementId) override; + virtual Element* LookupImageElement(const nsAString& aElementId) override; virtual void MozSetImageElement(const nsAString& aImageElementId, Element* aElement) override; @@ -1206,14 +1207,6 @@ public: RefPtr<nsDOMStyleSheetSetList> mStyleSheetSetList; RefPtr<nsScriptLoader> mScriptLoader; nsDocHeaderData* mHeaderData; - /* mIdentifierMap works as follows for IDs: - * 1) Attribute changes affect the table immediately (removing and adding - * entries as needed). - * 2) Removals from the DOM affect the table immediately - * 3) Additions to the DOM always update existing entries for names, and add - * new ones for IDs. - */ - nsTHashtable<nsIdentifierMapEntry> mIdentifierMap; nsClassHashtable<nsStringHashKey, nsRadioGroupStruct> mRadioGroups; |