From f73c8cccfeff380b51c8658ec00ed8579e6029ba Mon Sep 17 00:00:00 2001 From: "dbaron%fas.harvard.edu" Date: Thu, 13 Jun 2002 22:14:36 +0000 Subject: [PATCH] XUL fastload shouldn't call ParseStyleAttribute when there is no style attribute. b=151262 r=waterson sr=brendan git-svn-id: svn://10.0.0.236/trunk@123257 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/xul/content/src/nsXULElement.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/content/xul/content/src/nsXULElement.cpp b/mozilla/content/xul/content/src/nsXULElement.cpp index 849c611558f..969f87ab4b6 100644 --- a/mozilla/content/xul/content/src/nsXULElement.cpp +++ b/mozilla/content/xul/content/src/nsXULElement.cpp @@ -5021,11 +5021,13 @@ nsXULPrototypeElement::Deserialize(nsIObjectInputStream* aStream, // Compute the element's class list if the element has a 'class' attribute. nsAutoString value; - if (NS_SUCCEEDED(GetAttr(kNameSpaceID_None, nsXULAtoms::clazz, value))) + if (NS_CONTENT_ATTR_HAS_VALUE == + GetAttr(kNameSpaceID_None, nsXULAtoms::clazz, value)) rv |= nsClassList::ParseClasses(&mClassList, value); // Parse the element's 'style' attribute - if (NS_SUCCEEDED(GetAttr(kNameSpaceID_None, nsXULAtoms::style, value))) { + if (NS_CONTENT_ATTR_HAS_VALUE == + GetAttr(kNameSpaceID_None, nsXULAtoms::style, value)) { nsICSSParser* parser = GetCSSParser(); rv |= parser->ParseStyleAttribute(value, aDocumentURI,