Bug 333896

Convert GetAttr calls to AttrValueIs and FindAttrValueIn.
Patch by alfred.peng@sun.com.
roc: review+
roc: superreview+


git-svn-id: svn://10.0.0.236/trunk@195238 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
leon.sha%sun.com
2006-04-24 05:40:11 +00:00
parent 8831c806fe
commit ca47f5992a
45 changed files with 460 additions and 430 deletions

View File

@@ -2528,13 +2528,10 @@ nsGfxScrollFrameInner::SetCoordAttribute(nsIBox* aBox, nsIAtom* aAtom, nscoord a
nsIContent *content = aBox->GetContent();
nsAutoString oldValue;
content->GetAttr(kNameSpaceID_None, aAtom, oldValue);
nsAutoString newValue;
newValue.AppendInt(aSize);
if (oldValue == newValue)
if (content->AttrValueIs(kNameSpaceID_None, aAtom, newValue, eCaseMatters))
return PR_FALSE;
content->SetAttr(kNameSpaceID_None, aAtom, newValue, aReflow);