Bug 1398980 - Remove warning about stylo not supporting document state changes. r=me
authorBobby Holley <bobbyholley@gmail.com>
Fri, 15 Sep 2017 12:22:27 -0700
changeset 665702 1dc22f1138e63343e361c2d52b2c46c4843be750
parent 665701 3b21f5d72f54df2e34ffded24011eaa48f63c6b0
child 665703 89ee33156cdec7c01c9c4c124dc20f4704c113d4
push id80148
push userbmo:emilio@crisal.io
push dateFri, 15 Sep 2017 20:59:22 +0000
reviewersme
bugs1398980
milestone57.0a1
Bug 1398980 - Remove warning about stylo not supporting document state changes. r=me It's spammy and we already have a bug on file. MozReview-Commit-ID: DB7KGuj0V3I
layout/base/PresShell.cpp
--- a/layout/base/PresShell.cpp
+++ b/layout/base/PresShell.cpp
@@ -4288,19 +4288,16 @@ PresShell::DocumentStatesChanged(nsIDocu
   NS_PRECONDITION(!mIsDocumentGone, "Unexpected DocumentStatesChanged");
   NS_PRECONDITION(aDocument == mDocument, "Unexpected aDocument");
 
   nsStyleSet* geckoSet = mStyleSet->GetAsGecko();
   if (!geckoSet) {
     // XXXheycam ServoStyleSets don't support document state selectors,
     // but these are only used in chrome documents, which we are not
     // aiming to support yet.
-    NS_WARNING("stylo: ServoStyleSets cannot respond to document state "
-               "changes yet (only matters for chrome documents). See bug 1290285.");
-
   } else if (mDidInitialize &&
              geckoSet->HasDocumentStateDependentStyle(mDocument->GetRootElement(),
                                                       aStateMask)) {
     mPresContext->RestyleManager()->PostRestyleEvent(mDocument->GetRootElement(),
                                                      eRestyle_Subtree,
                                                      nsChangeHint(0));
     VERIFY_STYLE_TREE;
   }