Bug 1155766 - Fix a bad assertion r=dbaron
authorSylvestre Ledru <sledru@mozilla.com>
Mon, 20 Apr 2015 11:43:06 -0700
changeset 240149 2652222b92d536e92b02fab6d0648ab33d9751fb
parent 240148 ea910d309969c2cecc0f7dad8ddd12e3cfbff348
child 240150 0352b6fb976fa24fc4a0267f882621a6729166d2
push id58752
push usercbook@mozilla.com
push dateTue, 21 Apr 2015 10:39:00 +0000
treeherdermozilla-inbound@b8d59286a581 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs1155766
milestone40.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 1155766 - Fix a bad assertion r=dbaron
layout/style/nsHTMLCSSStyleSheet.cpp
--- a/layout/style/nsHTMLCSSStyleSheet.cpp
+++ b/layout/style/nsHTMLCSSStyleSheet.cpp
@@ -200,17 +200,17 @@ nsHTMLCSSStyleSheet::CacheStyleAttr(cons
 }
 
 void
 nsHTMLCSSStyleSheet::EvictStyleAttr(const nsAString& aSerialized,
                                     MiscContainer* aValue)
 {
 #ifdef DEBUG
   {
-    NS_ASSERTION(aValue = mCachedStyleAttrs.Get(aSerialized),
+    NS_ASSERTION(aValue == mCachedStyleAttrs.Get(aSerialized),
                  "Cached value does not match?!");
   }
 #endif
   mCachedStyleAttrs.Remove(aSerialized);
 }
 
 MiscContainer*
 nsHTMLCSSStyleSheet::LookupStyleAttr(const nsAString& aSerialized)