From e6be47e50433ab8fa1f3554e23a9cbb7b3c28f24 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sat, 27 Jun 2020 14:10:40 +0000 Subject: [PATCH] Bug 1647525 - Use HasAnyStateBits() in nsFontFaceUtils r=emilio Differential Revision: https://phabricator.services.mozilla.com/D81215 --- layout/style/nsFontFaceUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/style/nsFontFaceUtils.cpp b/layout/style/nsFontFaceUtils.cpp index 5dbadc496f7a..0e7d65712f4b 100644 --- a/layout/style/nsFontFaceUtils.cpp +++ b/layout/style/nsFontFaceUtils.cpp @@ -96,9 +96,9 @@ static void ScheduleReflow(PresShell* aPresShell, nsIFrame* aFrame) { // FrameNeedsReflow on. (This logic is based on // nsSVGUtils::ScheduleReflowSVG and // SVGTextFrame::ScheduleReflowSVGNonDisplayText.) - if (f->GetStateBits() & NS_FRAME_IS_NONDISPLAY) { + if (f->HasAnyStateBits(NS_FRAME_IS_NONDISPLAY)) { while (f) { - if (!(f->GetStateBits() & NS_FRAME_IS_NONDISPLAY)) { + if (!f->HasAnyStateBits(NS_FRAME_IS_NONDISPLAY)) { if (NS_SUBTREE_DIRTY(f)) { // This is a displayed frame, so if it is already dirty, we // will be reflowed soon anyway. No need to call