зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
199a26a95e
Коммит
c00b84e416
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче