Remove over-optimization that is occasionally incorrect b=325251 r+sr+br=bz

This commit is contained in:
neil%parkwaycc.co.uk 2006-02-09 21:32:48 +00:00
Родитель ce0f635f4e
Коммит 07a77a4a40
1 изменённых файлов: 3 добавлений и 9 удалений

Просмотреть файл

@ -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;