зеркало из https://github.com/mozilla/gecko-dev.git
Remove over-optimization that is occasionally incorrect b=325251 r+sr+br=bz
This commit is contained in:
Родитель
ce0f635f4e
Коммит
07a77a4a40
|
@ -244,12 +244,8 @@ nsTextBoxFrame::UpdateAttributes(nsPresContext* aPresContext,
|
|||
}
|
||||
|
||||
if (aAttribute == nsnull || aAttribute == nsHTMLAtoms::value) {
|
||||
nsAutoString value;
|
||||
mContent->GetAttr(kNameSpaceID_None, nsHTMLAtoms::value, value);
|
||||
if (!value.Equals(mTitle)) {
|
||||
mTitle = value;
|
||||
doUpdateTitle = PR_TRUE;
|
||||
}
|
||||
mContent->GetAttr(kNameSpaceID_None, nsHTMLAtoms::value, mTitle);
|
||||
doUpdateTitle = PR_TRUE;
|
||||
}
|
||||
|
||||
if (aAttribute == nsnull || aAttribute == nsXULAtoms::accesskey) {
|
||||
|
@ -264,9 +260,7 @@ nsTextBoxFrame::UpdateAttributes(nsPresContext* aPresContext,
|
|||
if (!accesskey.Equals(mAccessKey)) {
|
||||
if (!doUpdateTitle) {
|
||||
// Need to get clean mTitle and didn't already
|
||||
nsAutoString value;
|
||||
mContent->GetAttr(kNameSpaceID_None, nsHTMLAtoms::value, value);
|
||||
mTitle = value;
|
||||
mContent->GetAttr(kNameSpaceID_None, nsHTMLAtoms::value, mTitle);
|
||||
doUpdateTitle = PR_TRUE;
|
||||
}
|
||||
mAccessKey = accesskey;
|
||||
|
|
Загрузка…
Ссылка в новой задаче