Bug 1834002 - Avoid InvalidateFrameSubtree in HTMLInputElement::SetCheckedInternal, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D187103
This commit is contained in:
@@ -2986,11 +2986,7 @@ void HTMLInputElement::SetCheckedInternal(bool aChecked, bool aNotify) {
|
||||
// Set the value
|
||||
mChecked = aChecked;
|
||||
|
||||
// Notify the frame
|
||||
if (IsRadioOrCheckbox()) {
|
||||
if (nsIFrame* frame = GetPrimaryFrame()) {
|
||||
frame->InvalidateFrameSubtree();
|
||||
}
|
||||
SetStates(ElementState::CHECKED, aChecked, aNotify);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user