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:
@@ -5682,20 +5682,20 @@ HTMLInputElement::GetAttributeChangeHint(const nsIAtom* aAttribute,
|
||||
// buttons we show for type=file.
|
||||
aAttribute == nsGkAtoms::directory ||
|
||||
aAttribute == nsGkAtoms::webkitdirectory) {
|
||||
retval |= NS_STYLE_HINT_FRAMECHANGE;
|
||||
retval |= nsChangeHint_ReconstructFrame;
|
||||
} else if (mType == NS_FORM_INPUT_IMAGE &&
|
||||
(aAttribute == nsGkAtoms::alt ||
|
||||
aAttribute == nsGkAtoms::value)) {
|
||||
// We might need to rebuild our alt text. Just go ahead and
|
||||
// reconstruct our frame. This should be quite rare..
|
||||
retval |= NS_STYLE_HINT_FRAMECHANGE;
|
||||
retval |= nsChangeHint_ReconstructFrame;
|
||||
} else if (aAttribute == nsGkAtoms::value) {
|
||||
retval |= NS_STYLE_HINT_REFLOW;
|
||||
} else if (aAttribute == nsGkAtoms::size &&
|
||||
IsSingleLineTextControl(false)) {
|
||||
retval |= NS_STYLE_HINT_REFLOW;
|
||||
} else if (PlaceholderApplies() && aAttribute == nsGkAtoms::placeholder) {
|
||||
retval |= NS_STYLE_HINT_FRAMECHANGE;
|
||||
retval |= nsChangeHint_ReconstructFrame;
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user