зеркало из https://github.com/mozilla/gecko-dev.git
Bug 709523 - Part e: Remove some overloads of TypeInState::{SetProp,ClearProp}; r=ehsan a=edmorley
This commit is contained in:
Родитель
92dbf5d385
Коммит
b18d1021ca
|
@ -154,16 +154,6 @@ void TypeInState::Reset()
|
|||
}
|
||||
|
||||
|
||||
nsresult TypeInState::SetProp(nsIAtom *aProp)
|
||||
{
|
||||
return SetProp(aProp,EmptyString(),EmptyString());
|
||||
}
|
||||
|
||||
nsresult TypeInState::SetProp(nsIAtom *aProp, const nsString &aAttr)
|
||||
{
|
||||
return SetProp(aProp,aAttr,EmptyString());
|
||||
}
|
||||
|
||||
nsresult TypeInState::SetProp(nsIAtom *aProp, const nsString &aAttr, const nsString &aValue)
|
||||
{
|
||||
// special case for big/small, these nest
|
||||
|
@ -210,11 +200,6 @@ nsresult TypeInState::ClearAllProps()
|
|||
return ClearProp(nsnull,EmptyString());
|
||||
}
|
||||
|
||||
nsresult TypeInState::ClearProp(nsIAtom *aProp)
|
||||
{
|
||||
return ClearProp(aProp,EmptyString());
|
||||
}
|
||||
|
||||
nsresult TypeInState::ClearProp(nsIAtom *aProp, const nsString &aAttr)
|
||||
{
|
||||
// if it's already cleared we are done
|
||||
|
@ -286,15 +271,6 @@ nsresult TypeInState::GetTypingState(bool &isSet, bool &theSetting, nsIAtom *aPr
|
|||
return GetTypingState(isSet, theSetting, aProp, EmptyString(), nsnull);
|
||||
}
|
||||
|
||||
nsresult TypeInState::GetTypingState(bool &isSet,
|
||||
bool &theSetting,
|
||||
nsIAtom *aProp,
|
||||
const nsString &aAttr)
|
||||
{
|
||||
return GetTypingState(isSet, theSetting, aProp, aAttr, nsnull);
|
||||
}
|
||||
|
||||
|
||||
nsresult TypeInState::GetTypingState(bool &isSet,
|
||||
bool &theSetting,
|
||||
nsIAtom *aProp,
|
||||
|
|
|
@ -74,12 +74,9 @@ public:
|
|||
// nsISelectionListener
|
||||
NS_DECL_NSISELECTIONLISTENER
|
||||
|
||||
nsresult SetProp(nsIAtom *aProp);
|
||||
nsresult SetProp(nsIAtom *aProp, const nsString &aAttr);
|
||||
nsresult SetProp(nsIAtom *aProp, const nsString &aAttr, const nsString &aValue);
|
||||
|
||||
nsresult ClearAllProps();
|
||||
nsresult ClearProp(nsIAtom *aProp);
|
||||
nsresult ClearProp(nsIAtom *aProp, const nsString &aAttr);
|
||||
|
||||
//**************************************************************************
|
||||
|
@ -98,8 +95,6 @@ public:
|
|||
nsresult TakeRelativeFontSize(PRInt32 *outRelSize);
|
||||
|
||||
nsresult GetTypingState(bool &isSet, bool &theSetting, nsIAtom *aProp);
|
||||
nsresult GetTypingState(bool &isSet, bool &theSetting, nsIAtom *aProp,
|
||||
const nsString &aAttr);
|
||||
nsresult GetTypingState(bool &isSet, bool &theSetting, nsIAtom *aProp,
|
||||
const nsString &aAttr, nsString* outValue);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче