Bug 1647525 - Use HasAnyStateBits() in nsFieldSetFrame r=emilio

Depends on D81099

Differential Revision: https://phabricator.services.mozilla.com/D81100
This commit is contained in:
Kagami Sascha Rosylight
2020-06-25 14:10:40 +00:00
parent 058ad1cb99
commit f8e2967a42

View File

@@ -222,7 +222,7 @@ void nsFieldSetFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
// REVIEW: We don't really need to check frame emptiness here; if it's empty,
// the background/border display item won't do anything, and if it isn't
// empty, we need to paint the outline
if (!(GetStateBits() & NS_FRAME_IS_OVERFLOW_CONTAINER) &&
if (!HasAnyStateBits(NS_FRAME_IS_OVERFLOW_CONTAINER) &&
IsVisibleForPainting()) {
DisplayOutsetBoxShadowUnconditional(aBuilder, aLists.BorderBackground());