mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 15:51:37 +00:00
Bug 836176 Part 1.5: Fix nsIDocument::AsHTMLDocument() r=bz
This commit is contained in:
parent
e4a4ec86b9
commit
2988515b8d
@ -2103,7 +2103,7 @@ public:
|
||||
already_AddRefed<nsIDOMTouchList>
|
||||
CreateTouchList(const mozilla::dom::Sequence<nsRefPtr<nsIDOMTouch> >& aTouches);
|
||||
|
||||
nsHTMLDocument* AsHTMLDocument();
|
||||
virtual nsHTMLDocument* AsHTMLDocument() { return nullptr; }
|
||||
|
||||
private:
|
||||
uint64_t mWarnedAbout;
|
||||
|
@ -1906,12 +1906,6 @@ nsDocument::Init()
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsHTMLDocument*
|
||||
nsIDocument::AsHTMLDocument()
|
||||
{
|
||||
return IsHTML() ? static_cast<nsHTMLDocument*>(this) : nullptr;
|
||||
}
|
||||
|
||||
void
|
||||
nsIDocument::DeleteAllProperties()
|
||||
{
|
||||
|
@ -255,6 +255,8 @@ public:
|
||||
return nsIDocument::GetLocation();
|
||||
}
|
||||
|
||||
virtual nsHTMLDocument* AsHTMLDocument() { return this; }
|
||||
|
||||
protected:
|
||||
nsresult GetBodySize(int32_t* aWidth,
|
||||
int32_t* aHeight);
|
||||
|
Loading…
x
Reference in New Issue
Block a user