Bug 1275766 - Stub out nsPresContext::HasAuthorSpecifiedRules. r=heycam
authorBobby Holley <bobbyholley@gmail.com>
Tue, 24 May 2016 19:53:41 -0700
changeset 340148 e9de9eee6be361530f7d5b1d1e2bc0be1d608cfe
parent 340147 4c23a043fc70f179c0aae0077820f369f475d980
child 340149 9e8227f66e971a186de5638d0800bc302f6a1bd1
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersheycam
bugs1275766
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1275766 - Stub out nsPresContext::HasAuthorSpecifiedRules. r=heycam
layout/base/nsPresContext.cpp
--- a/layout/base/nsPresContext.cpp
+++ b/layout/base/nsPresContext.cpp
@@ -2027,16 +2027,22 @@ nsPresContext::UpdateIsChrome()
   mIsChrome = mContainer &&
               nsIDocShellTreeItem::typeChrome == mContainer->ItemType();
 }
 
 /* virtual */ bool
 nsPresContext::HasAuthorSpecifiedRules(const nsIFrame *aFrame,
                                        uint32_t ruleTypeMask) const
 {
+#ifdef MOZ_STYLO
+  if (!mShell || mShell->StyleSet()->IsServo()) {
+    NS_ERROR("stylo: nsPresContext::HasAuthorSpecifiedRules not implemented");
+    return true;
+  }
+#endif
   return
     nsRuleNode::HasAuthorSpecifiedRules(aFrame->StyleContext(),
                                         ruleTypeMask,
                                         UseDocumentColors());
 }
 
 gfxUserFontSet*
 nsPresContext::GetUserFontSet()