Bug 1398982 - Remove style scoped warnings for stylo. r=me
☠☠ backed out by bd58d86f008b ☠ ☠
authorBobby Holley <bobbyholley@gmail.com>
Fri, 15 Sep 2017 12:20:22 -0700
changeset 665701 3b21f5d72f54df2e34ffded24011eaa48f63c6b0
parent 665700 dd653d5758d5cdbdc22e942eb54468a12400aa5c
child 665702 1dc22f1138e63343e361c2d52b2c46c4843be750
push id80148
push userbmo:emilio@crisal.io
push dateFri, 15 Sep 2017 20:59:22 +0000
reviewersme
bugs1398982
milestone57.0a1
Bug 1398982 - Remove style scoped warnings for stylo. r=me We're unshipping stylo scoped anyway. MozReview-Commit-ID: IeZLzX3ZU9i
dom/base/nsStyleLinkElement.cpp
--- a/dom/base/nsStyleLinkElement.cpp
+++ b/dom/base/nsStyleLinkElement.cpp
@@ -426,17 +426,17 @@ nsStyleLinkElement::DoUpdateStyleSheet(n
       (aOldShadowRoot || containingShadow)) {
     return NS_OK;
   }
 
   // XXXheycam ServoStyleSheets do not support <style scoped>.
   Element* oldScopeElement = nullptr;
   if (mStyleSheet) {
     if (mStyleSheet->IsServo()) {
-      NS_WARNING("stylo: ServoStyleSheets don't support <style scoped>");
+      // XXXheycam ServoStyleSheets don't support <style scoped>.
     } else {
       oldScopeElement = mStyleSheet->AsGecko()->GetScopeElement();
     }
   }
 
   if (mStyleSheet && (aOldDocument || aOldShadowRoot)) {
     MOZ_ASSERT(!(aOldDocument && aOldShadowRoot),
                "ShadowRoot content is never in document, thus "
@@ -591,17 +591,16 @@ void
 nsStyleLinkElement::UpdateStyleSheetScopedness(bool aIsNowScoped)
 {
   if (!mStyleSheet) {
     return;
   }
 
   if (mStyleSheet->IsServo()) {
     // XXXheycam ServoStyleSheets don't support <style scoped>.
-    NS_ERROR("stylo: ServoStyleSheets don't support <style scoped>");
     return;
   }
 
   CSSStyleSheet* sheet = mStyleSheet->AsGecko();
 
   nsCOMPtr<nsIContent> thisContent;
   CallQueryInterface(this, getter_AddRefs(thisContent));