Bug 1343388 - Use threadsafe style struct accessor in assertion. r=emilio
authorBobby Holley <bobbyholley@gmail.com>
Tue, 28 Feb 2017 15:25:13 -0800
changeset 374229 2d3c0b4c3e4a91b549c71d87711449fae0133a5e
parent 374228 5b8c22b505a48f78764e22ae720b9bda07853b33
child 374230 042624a21b86862645c2bf4fc131c54cef43dd5c
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
bugs1343388
milestone54.0a1
Bug 1343388 - Use threadsafe style struct accessor in assertion. r=emilio MozReview-Commit-ID: 5DdcKgyADbE
layout/style/nsStyleStructInlines.h
--- a/layout/style/nsStyleStructInlines.h
+++ b/layout/style/nsStyleStructInlines.h
@@ -146,17 +146,17 @@ nsStyleDisplay::HasTransform(const nsIFr
 
 template<class StyleContextLike>
 bool
 nsStyleDisplay::HasFixedPosContainingBlockStyleInternal(
                   StyleContextLike* aStyleContext) const
 {
   // NOTE: Any CSS properties that influence the output of this function
   // should have the CSS_PROPERTY_FIXPOS_CB set on them.
-  NS_ASSERTION(aStyleContext->StyleDisplay() == this,
+  NS_ASSERTION(aStyleContext->ThreadsafeStyleDisplay() == this,
                "unexpected aStyleContext");
 
   if (IsContainPaint() || HasPerspectiveStyle()) {
     return true;
   }
 
   if (mWillChangeBitField & NS_STYLE_WILL_CHANGE_FIXPOS_CB) {
     return true;