зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1418076 part 6. Get rid of nsIDOMHTMLDocument's queryCommand* methods. r=mystor
MozReview-Commit-ID: Jch0wfisBZa
This commit is contained in:
Родитель
311e6cf3f4
Коммит
aa98a6d46b
|
@ -3206,15 +3206,6 @@ nsHTMLDocument::QueryCommandEnabled(const nsAString& commandID,
|
|||
return retval;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsHTMLDocument::QueryCommandIndeterm(const nsAString & commandID,
|
||||
bool *_retval)
|
||||
{
|
||||
ErrorResult rv;
|
||||
*_retval = QueryCommandIndeterm(commandID, rv);
|
||||
return rv.StealNSResult();
|
||||
}
|
||||
|
||||
bool
|
||||
nsHTMLDocument::QueryCommandIndeterm(const nsAString& commandID, ErrorResult& rv)
|
||||
{
|
||||
|
@ -3263,14 +3254,6 @@ nsHTMLDocument::QueryCommandIndeterm(const nsAString& commandID, ErrorResult& rv
|
|||
return retval;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsHTMLDocument::QueryCommandState(const nsAString & commandID, bool *_retval)
|
||||
{
|
||||
ErrorResult rv;
|
||||
*_retval = QueryCommandState(commandID, rv);
|
||||
return rv.StealNSResult();
|
||||
}
|
||||
|
||||
bool
|
||||
nsHTMLDocument::QueryCommandState(const nsAString& commandID, ErrorResult& rv)
|
||||
{
|
||||
|
@ -3376,15 +3359,6 @@ nsHTMLDocument::QueryCommandSupported(const nsAString& commandID,
|
|||
return ConvertToMidasInternalCommand(commandID, cmdToDispatch);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsHTMLDocument::QueryCommandValue(const nsAString & commandID,
|
||||
nsAString &_retval)
|
||||
{
|
||||
ErrorResult rv;
|
||||
QueryCommandValue(commandID, _retval, rv);
|
||||
return rv.StealNSResult();
|
||||
}
|
||||
|
||||
void
|
||||
nsHTMLDocument::QueryCommandValue(const nsAString& commandID,
|
||||
nsAString& aValue,
|
||||
|
|
|
@ -16,16 +16,6 @@ interface nsISelection;
|
|||
[uuid(cd31e61f-cfc2-4b91-9385-17b6a2d0633d)]
|
||||
interface nsIDOMHTMLDocument : nsIDOMDocument
|
||||
{
|
||||
// returns true if the command is in a indeterminate state (false otherwise)
|
||||
boolean queryCommandIndeterm(in DOMString commandID);
|
||||
|
||||
// returns true if the command has been executed (false otherwise)
|
||||
boolean queryCommandState(in DOMString commandID);
|
||||
|
||||
// returns the current value of the document or current selection for command
|
||||
DOMString queryCommandValue(in DOMString commandID);
|
||||
|
||||
|
||||
// Obsolete APIs
|
||||
attribute DOMString fgColor;
|
||||
attribute DOMString bgColor;
|
||||
|
|
Загрузка…
Ссылка в новой задаче