Bug 1647525 - Use HasAnyStateBits() in nsTableFrame r=emilio draft
authorKagami Sascha Rosylight <saschanaz@outlook.com>
Sat, 27 Jun 2020 13:51:41 +0000
changeset 3009953 5c01022f716efbe59e6b54e655fe9d8e3d268078
parent 3009952 1ab41c283b5372135e3f2938035d12f925aae049
child 3009954 52cabdbb40ab7a56b42f31edb601e5382a4b9795
push id561043
push userreviewbot
push dateSat, 27 Jun 2020 13:52:06 +0000
treeherdertry@52cabdbb40ab [default view] [failures only]
reviewersemilio
bugs1647525
milestone79.0a1
Bug 1647525 - Use HasAnyStateBits() in nsTableFrame r=emilio Summary: Differential Revision: https://phabricator.services.mozilla.com/D81225 Depends on D81224 Test Plan: Reviewers: emilio Subscribers: Bug #: 1647525 Differential Diff: PHID-DIFF-sd47nfv4fyxwaqslosho
layout/tables/nsTableFrame.cpp
--- a/layout/tables/nsTableFrame.cpp
+++ b/layout/tables/nsTableFrame.cpp
@@ -7485,11 +7485,11 @@ void nsTableFrame::UpdateStyleOfOwnedAno
     aRestyleState.ChangeList().AppendChange(
         aWrapperFrame, aWrapperFrame->GetContent(), wrapperHint);
   }
 
   for (nsIFrame* cur = aWrapperFrame; cur; cur = cur->GetNextContinuation()) {
     cur->SetComputedStyle(newStyle);
   }
 
-  MOZ_ASSERT(!(aWrapperFrame->GetStateBits() & NS_FRAME_OWNS_ANON_BOXES),
+  MOZ_ASSERT(!aWrapperFrame->HasAnyStateBits(NS_FRAME_OWNS_ANON_BOXES),
              "Wrapper frame doesn't have any anon boxes of its own!");
 }