Bug 1418076 part 8. Remove remaining, unused, nsIDOMHTMLDocument methods. r=mystor.

MozReview-Commit-ID: AshWkds4I8Z
This commit is contained in:
Boris Zbarsky 2018-01-26 01:01:16 -05:00
Родитель 7fdae0afd0
Коммит 94892c7519
3 изменённых файлов: 4 добавлений и 36 удалений

Просмотреть файл

@ -1680,13 +1680,6 @@ nsHTMLDocument::Open(JSContext* cx,
return kungFuDeathGrip.forget();
}
NS_IMETHODIMP
nsHTMLDocument::Clear()
{
// This method has been deprecated
return NS_OK;
}
void
nsHTMLDocument::Close(ErrorResult& rv)
{
@ -2027,26 +2020,16 @@ nsHTMLDocument::Embeds()
return mEmbeds;
}
NS_IMETHODIMP
nsHTMLDocument::GetSelection(nsISelection** aReturn)
{
ErrorResult rv;
NS_IF_ADDREF(*aReturn = nsDocument::GetSelection(rv));
return rv.StealNSResult();
}
NS_IMETHODIMP
void
nsHTMLDocument::CaptureEvents()
{
WarnOnceAbout(nsIDocument::eUseOfCaptureEvents);
return NS_OK;
}
NS_IMETHODIMP
void
nsHTMLDocument::ReleaseEvents()
{
WarnOnceAbout(nsIDocument::eUseOfReleaseEvents);
return NS_OK;
}
// Mapped to document.embeds for NS4 compatibility

Просмотреть файл

@ -238,8 +238,8 @@ public:
{
// Deprecated
}
// The XPCOM CaptureEvents works fine for us.
// The XPCOM ReleaseEvents works fine for us.
void CaptureEvents();
void ReleaseEvents();
// We're picking up GetLocation from Document
already_AddRefed<mozilla::dom::Location> GetLocation() const
{

Просмотреть файл

@ -11,23 +11,8 @@
*
* @see <http://www.whatwg.org/html/>
*/
interface nsISelection;
[uuid(cd31e61f-cfc2-4b91-9385-17b6a2d0633d)]
interface nsIDOMHTMLDocument : nsIDOMDocument
{
void clear();
// DOM Range
nsISelection getSelection();
// More obsolete APIs
/**
* @deprecated These are old Netscape 4 methods. Do not use,
* the implementation is no-op.
*/
void captureEvents();
void releaseEvents();
};