Bug 1381844 - Remove diagnostic assertions. r=me
authorBobby Holley <bobbyholley@gmail.com>
Tue, 08 Aug 2017 12:04:31 -0700
changeset 373487 40807a516e5ee041a8c557587cca1aab6670338c
parent 373486 ba58978bca1807bafeea06734233d10a15852518
child 373488 fdf9ccb0b9abace19f58a41f7ef209fefaf784db
push id32303
push usercbook@mozilla.com
push dateWed, 09 Aug 2017 09:34:07 +0000
treeherdermozilla-central@c93fa2271ee7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1381844
milestone57.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 1381844 - Remove diagnostic assertions. r=me MozReview-Commit-ID: GSXYiF6XHbm
layout/style/ServoUtils.h
--- a/layout/style/ServoUtils.h
+++ b/layout/style/ServoUtils.h
@@ -48,29 +48,29 @@ void AssertIsMainThreadOrServoFontMetric
 
 /**
  * Macro used in inline header of class |type_| with its Gecko and Servo
  * subclasses named |geckotype_| and |servotype_| correspondingly for
  * implementing the inline methods defined by MOZ_DECL_STYLO_METHODS.
  */
 #define MOZ_DEFINE_STYLO_METHODS(type_, geckotype_, servotype_) \
   geckotype_* type_::AsGecko() {                                \
-    MOZ_DIAGNOSTIC_ASSERT(IsGecko());                           \
+    MOZ_ASSERT(IsGecko());                                      \
     return static_cast<geckotype_*>(this);                      \
   }                                                             \
   servotype_* type_::AsServo() {                                \
-    MOZ_DIAGNOSTIC_ASSERT(IsServo());                           \
+    MOZ_ASSERT(IsServo());                                      \
     return static_cast<servotype_*>(this);                      \
   }                                                             \
   const geckotype_* type_::AsGecko() const {                    \
-    MOZ_DIAGNOSTIC_ASSERT(IsGecko());                           \
+    MOZ_ASSERT(IsGecko());                                      \
     return static_cast<const geckotype_*>(this);                \
   }                                                             \
   const servotype_* type_::AsServo() const {                    \
-    MOZ_DIAGNOSTIC_ASSERT(IsServo());                           \
+    MOZ_ASSERT(IsServo());                                      \
     return static_cast<const servotype_*>(this);                \
   }                                                             \
   geckotype_* type_::GetAsGecko() {                             \
     return IsGecko() ? AsGecko() : nullptr;                     \
   }                                                             \
   servotype_* type_::GetAsServo() {                             \
     return IsServo() ? AsServo() : nullptr;                     \
   }                                                             \