diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2020-01-01 14:56:19 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2020-01-26 15:49:16 -0500 |
commit | a2b56b295b8bd089b74c5d93148edafe7e6da912 (patch) | |
tree | b982cd6ea8477203d0081c64224f9955bd376d84 /dom/html/nsHTMLDocument.cpp | |
parent | a1cce3b2b00bbd9f4983013ddd8934a7bccb9e99 (diff) | |
download | UXP-a2b56b295b8bd089b74c5d93148edafe7e6da912.tar UXP-a2b56b295b8bd089b74c5d93148edafe7e6da912.tar.gz UXP-a2b56b295b8bd089b74c5d93148edafe7e6da912.tar.lz UXP-a2b56b295b8bd089b74c5d93148edafe7e6da912.tar.xz UXP-a2b56b295b8bd089b74c5d93148edafe7e6da912.zip |
Bug 1276438 part 1. Move the implementation of the .body getter from nsHTMLDocument to nsIDocument.
Tag UXP Issue #1344
Tag UXP Issue #252
Diffstat (limited to 'dom/html/nsHTMLDocument.cpp')
-rw-r--r-- | dom/html/nsHTMLDocument.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/dom/html/nsHTMLDocument.cpp b/dom/html/nsHTMLDocument.cpp index 0f2d90673..23c73298d 100644 --- a/dom/html/nsHTMLDocument.cpp +++ b/dom/html/nsHTMLDocument.cpp @@ -1013,26 +1013,6 @@ nsHTMLDocument::SetDomain(const nsAString& aDomain, ErrorResult& rv) rv = NodePrincipal()->SetDomain(newURI); } -nsGenericHTMLElement* -nsHTMLDocument::GetBody() -{ - Element* html = GetHtmlElement(); - if (!html) { - return nullptr; - } - - for (nsIContent* child = html->GetFirstChild(); - child; - child = child->GetNextSibling()) { - if (child->IsHTMLElement(nsGkAtoms::body) || - child->IsHTMLElement(nsGkAtoms::frameset)) { - return static_cast<nsGenericHTMLElement*>(child); - } - } - - return nullptr; -} - NS_IMETHODIMP nsHTMLDocument::GetBody(nsIDOMHTMLElement** aBody) { |