Fixing speedracer bustage. Not sure I like this, nor the reason why there's bustage in the first place. *grmbl*

This commit is contained in:
jaggernaut%netscape.com 2001-08-25 04:22:47 +00:00
Родитель 199a26a95e
Коммит c00b84e416
2 изменённых файлов: 6 добавлений и 3 удалений

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

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

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

@ -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<nsIHTMLStyleSheet> 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();