Bug 1454030 - Stop asserting main thread when looking up CSS keywords. r=emilio
authorBobby Holley <bobbyholley@gmail.com>
Wed, 04 Apr 2018 12:19:13 -0700
changeset 467527 ef9eec5460a77561b39b11e024a81a79551ac71e
parent 467526 912b68cc5aaf15e949756e38bc6e6ec2d764b877
child 467528 0b6f99cbcab6dc1c0366fee97b8bb9928d3cf322
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
bugs1454030
milestone61.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 1454030 - Stop asserting main thread when looking up CSS keywords. r=emilio MozReview-Commit-ID: 2BolVJXz8pz
layout/style/ServoBindings.cpp
--- a/layout/style/ServoBindings.cpp
+++ b/layout/style/ServoBindings.cpp
@@ -2567,18 +2567,16 @@ Gecko_LoadStyleSheet(css::Loader* aLoade
   RefPtr<ServoStyleSheet> sheet =
     static_cast<ServoStyleSheet*>(aParent->GetFirstChild());
   return sheet.forget().take();
 }
 
 nsCSSKeyword
 Gecko_LookupCSSKeyword(const uint8_t* aString, uint32_t aLength)
 {
-  MOZ_ASSERT(NS_IsMainThread());
-
   nsDependentCSubstring keyword(reinterpret_cast<const char*>(aString), aLength);
   return nsCSSKeywords::LookupKeyword(keyword);
 }
 
 const char*
 Gecko_CSSKeywordString(nsCSSKeyword aKeyword, uint32_t* aLength)
 {
   MOZ_ASSERT(NS_IsMainThread());