зеркало из https://github.com/mozilla/pjs.git
Bug 27327: Input::SetAttribute('value') now updates content model, r=buster
This commit is contained in:
Родитель
dff8bc37df
Коммит
24c709a045
|
@ -95,8 +95,10 @@ public:
|
|||
NS_IMETHOD SetAttribute(const nsString& aName, const nsString& aValue) {
|
||||
nsAutoString valueAttribute;
|
||||
nsHTMLAtoms::value->ToString(valueAttribute);
|
||||
if (PR_TRUE==valueAttribute.Equals(aName))
|
||||
return SetValue(aValue);
|
||||
if (PR_TRUE==valueAttribute.Equals(aName)) {
|
||||
SetValue(aValue);
|
||||
// Don't return here, need to set the attribute in the content model too.
|
||||
}
|
||||
return mInner.SetAttribute(aName, aValue);
|
||||
}
|
||||
NS_IMETHOD RemoveAttribute(const nsString& aName) {
|
||||
|
|
|
@ -95,8 +95,10 @@ public:
|
|||
NS_IMETHOD SetAttribute(const nsString& aName, const nsString& aValue) {
|
||||
nsAutoString valueAttribute;
|
||||
nsHTMLAtoms::value->ToString(valueAttribute);
|
||||
if (PR_TRUE==valueAttribute.Equals(aName))
|
||||
return SetValue(aValue);
|
||||
if (PR_TRUE==valueAttribute.Equals(aName)) {
|
||||
SetValue(aValue);
|
||||
// Don't return here, need to set the attribute in the content model too.
|
||||
}
|
||||
return mInner.SetAttribute(aName, aValue);
|
||||
}
|
||||
NS_IMETHOD RemoveAttribute(const nsString& aName) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче