Bug 1319982 - Move Servo_GetStyleVariables definition to the Servo side. r=manishearth
authorCameron McCormack <cam@mcc.id.au>
Fri, 25 Nov 2016 09:41:41 +0800
changeset 324281 6cd80e49535f5d17cd134ceeee79efd0f7d1445f
parent 324280 ba097fb49461197c7d937555176dc0043784dfe5
child 324282 a9856363aac76201b73e4885673889a4983e5f21
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersmanishearth
bugs1319982
milestone53.0a1
Bug 1319982 - Move Servo_GetStyleVariables definition to the Servo side. r=manishearth MozReview-Commit-ID: roXO95icic
layout/style/ServoBindings.cpp
--- a/layout/style/ServoBindings.cpp
+++ b/layout/style/ServoBindings.cpp
@@ -1093,20 +1093,8 @@ Gecko_Destroy_nsStyle##name(nsStyle##nam
 #ifndef MOZ_STYLO
 #define SERVO_BINDING_FUNC(name_, return_, ...)                               \
   return_ name_(__VA_ARGS__) {                                                \
     MOZ_CRASH("stylo: shouldn't be calling " #name_ "in a non-stylo build");  \
   }
 #include "ServoBindingList.h"
 #undef SERVO_BINDING_FUNC
 #endif
-
-#ifdef MOZ_STYLO
-const nsStyleVariables*
-Servo_GetStyleVariables(ServoComputedValuesBorrowed aComputedValues)
-{
-  // Servo can't provide us with Variables structs yet, so instead of linking
-  // to a Servo_GetStyleVariables defined in Servo we define one here that
-  // always returns the same, empty struct.
-  static nsStyleVariables variables(StyleStructContext::ServoContext());
-  return &variables;
-}
-#endif