From c00b84e41616ac86872876157ec00a8a2a0e18ce Mon Sep 17 00:00:00 2001 From: "jaggernaut%netscape.com" Date: Sat, 25 Aug 2001 04:22:47 +0000 Subject: [PATCH] Fixing speedracer bustage. Not sure I like this, nor the reason why there's bustage in the first place. *grmbl* --- content/base/src/nsGenericElement.cpp | 3 ++- content/html/content/src/nsGenericHTMLElement.cpp | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/content/base/src/nsGenericElement.cpp b/content/base/src/nsGenericElement.cpp index c0faaf30147..9b6d86652c9 100644 --- a/content/base/src/nsGenericElement.cpp +++ b/content/base/src/nsGenericElement.cpp @@ -3080,7 +3080,8 @@ nsGenericContainerElement::SetAttr(nsINodeInfo* aNodeInfo, } if (aNotify) { - PRInt32 modHint = modification ? nsIDOMMutationEvent::MODIFICATION : nsIDOMMutationEvent::ADDITION; + PRInt32 modHint = modification ? PRInt32(nsIDOMMutationEvent::MODIFICATION) + : PRInt32(nsIDOMMutationEvent::ADDITION); mDocument->AttributeChanged(this, nameSpaceID, name, modHint, NS_STYLE_HINT_UNKNOWN); mDocument->EndUpdate(); diff --git a/content/html/content/src/nsGenericHTMLElement.cpp b/content/html/content/src/nsGenericHTMLElement.cpp index a6e97663874..467cea971f6 100644 --- a/content/html/content/src/nsGenericHTMLElement.cpp +++ b/content/html/content/src/nsGenericHTMLElement.cpp @@ -1503,7 +1503,8 @@ nsGenericHTMLElement::SetAttr(PRInt32 aNameSpaceID, // set as string value to avoid another string copy PRBool impact = NS_STYLE_HINT_NONE; - PRInt32 modHint = modification ? nsIDOMMutationEvent::MODIFICATION : nsIDOMMutationEvent::ADDITION; + PRInt32 modHint = modification ? PRInt32(nsIDOMMutationEvent::MODIFICATION) + : PRInt32(nsIDOMMutationEvent::ADDITION); GetMappedAttributeImpact(aAttribute, modHint, impact); nsCOMPtr sheet(dont_AddRef(GetAttrStyleSheet(mDocument))); @@ -1562,7 +1563,8 @@ nsGenericHTMLElement::SetAttr(PRInt32 aNameSpaceID, } if (aNotify) { - PRInt32 modHint = modification ? nsIDOMMutationEvent::MODIFICATION : nsIDOMMutationEvent::ADDITION; + PRInt32 modHint = modification ? PRInt32(nsIDOMMutationEvent::MODIFICATION) + : PRInt32(nsIDOMMutationEvent::ADDITION); mDocument->AttributeChanged(this, aNameSpaceID, aAttribute, modHint, NS_STYLE_HINT_UNKNOWN); mDocument->EndUpdate();