зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1432977 part 2. Remove nsIDOMHTMLElement's spellcheck attribute. r=mccr8
MozReview-Commit-ID: B07hMx3LAed
This commit is contained in:
Родитель
f26bfa5954
Коммит
548d16d0b1
|
@ -270,10 +270,6 @@ public:
|
|||
nsSize GetWidthHeightForImage(RefPtr<imgRequestProxy>& aImageRequest);
|
||||
|
||||
// XPIDL methods
|
||||
NS_IMETHOD GetSpellcheck(bool* aSpellcheck) final override {
|
||||
*aSpellcheck = Spellcheck();
|
||||
return NS_OK;
|
||||
}
|
||||
NS_IMETHOD GetOffsetWidth(int32_t* aOffsetWidth) final override {
|
||||
*aOffsetWidth = OffsetWidth();
|
||||
return NS_OK;
|
||||
|
|
|
@ -22,9 +22,6 @@ interface nsIDOMHTMLMenuElement;
|
|||
[uuid(b0c42392-d0e7-4f6a-beb5-a698ce648945)]
|
||||
interface nsIDOMHTMLElement : nsIDOMElement
|
||||
{
|
||||
readonly attribute boolean spellcheck;
|
||||
|
||||
|
||||
// CSSOM View
|
||||
readonly attribute long offsetWidth;
|
||||
readonly attribute long offsetHeight;
|
||||
|
|
|
@ -64,6 +64,7 @@
|
|||
#include "nsError.h" // for NS_OK, etc.
|
||||
#include "nsFocusManager.h" // for nsFocusManager
|
||||
#include "nsFrameSelection.h" // for nsFrameSelection
|
||||
#include "nsGenericHTMLElement.h" // for nsGenericHTMLElement
|
||||
#include "nsGkAtoms.h" // for nsGkAtoms, nsGkAtoms::dir
|
||||
#include "nsIAbsorbingTransaction.h" // for nsIAbsorbingTransaction
|
||||
#include "nsAtom.h" // for nsAtom
|
||||
|
@ -451,7 +452,7 @@ EditorBase::GetDesiredSpellCheckState()
|
|||
return false;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIDOMHTMLElement> element = do_QueryInterface(content);
|
||||
auto element = nsGenericHTMLElement::FromContent(content);
|
||||
if (!element) {
|
||||
return false;
|
||||
}
|
||||
|
@ -464,10 +465,7 @@ EditorBase::GetDesiredSpellCheckState()
|
|||
return doc && doc->IsEditingOn();
|
||||
}
|
||||
|
||||
bool enable;
|
||||
element->GetSpellcheck(&enable);
|
||||
|
||||
return enable;
|
||||
return element->Spellcheck();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
Загрузка…
Ссылка в новой задаче