mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
One more for the speedracer bustage fix.
The problem is that the generated header contains the following bit: enum { MODIFICATION = 1U }; enum { ADDITION = 2U }; enum { REMOVAL = 3U }; So to speedracer's compiler, this line signals a potential programmer error: PRInt32 modHint = modification ? nsIDOMMutationEvent::MODIFICATION : nsIDOMMutationEvent::ADDITION; Apparently they value it like an error and not a warning.
This commit is contained in:
parent
b7b30ca17a
commit
4390a22770
@ -3086,7 +3086,8 @@ nsXULElement::SetAttr(nsINodeInfo* aNodeInfo,
|
||||
(tagName.get() == nsXULAtoms::key))
|
||||
return rv;
|
||||
|
||||
PRInt32 modHint = modification ? nsIDOMMutationEvent::MODIFICATION : nsIDOMMutationEvent::ADDITION;
|
||||
PRInt32 modHint = modification ? PRInt32(nsIDOMMutationEvent::MODIFICATION)
|
||||
: PRInt32(nsIDOMMutationEvent::ADDITION);
|
||||
mDocument->AttributeChanged(this, attrns, attrName, modHint,
|
||||
NS_STYLE_HINT_UNKNOWN);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user