Bug 1815945 - Simplify state bit handling r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D169367
This commit is contained in:
Robert Longson
2023-02-14 08:28:48 +00:00
parent 00e6b70dbf
commit 5ec6eef010
12 changed files with 39 additions and 43 deletions

View File

@@ -741,7 +741,7 @@ void SVGImageFrame::ReflowSVG() {
mRect.SetEmpty();
}
if (mState & NS_FRAME_FIRST_REFLOW) {
if (HasAnyStateBits(NS_FRAME_FIRST_REFLOW)) {
// Make sure we have our filter property (if any) before calling
// FinishAndStoreOverflow (subsequent filter changes are handled off
// nsChangeHint_UpdateEffects):