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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user