Bug 906116 - part3.3: Replace NS_STYLE_HINT_FRAMECHANGE with nsChangeHint_ReconstructFrame. r=dbaron
Use ReconstructFrame to replace NS_STYLE_HINT_FRAMECHANGE in many places, such as HTML*Element::GetAttributeChangeHint and HTMLFrameSetElement::SetAttr. MozReview-Commit-ID: EHbc4RMeuu0
This commit is contained in:
@@ -343,11 +343,11 @@ HTMLImageElement::GetAttributeChangeHint(const nsIAtom* aAttribute,
|
||||
nsGenericHTMLElement::GetAttributeChangeHint(aAttribute, aModType);
|
||||
if (aAttribute == nsGkAtoms::usemap ||
|
||||
aAttribute == nsGkAtoms::ismap) {
|
||||
retval |= NS_STYLE_HINT_FRAMECHANGE;
|
||||
retval |= nsChangeHint_ReconstructFrame;
|
||||
} else if (aAttribute == nsGkAtoms::alt) {
|
||||
if (aModType == nsIDOMMutationEvent::ADDITION ||
|
||||
aModType == nsIDOMMutationEvent::REMOVAL) {
|
||||
retval |= NS_STYLE_HINT_FRAMECHANGE;
|
||||
retval |= nsChangeHint_ReconstructFrame;
|
||||
}
|
||||
}
|
||||
return retval;
|
||||
|
||||
Reference in New Issue
Block a user