Bug 1244068 - Part 1: Add enum to represent the style system backend type. r=dholbert
authorCameron McCormack <cam@mcc.id.au>
Wed, 24 Feb 2016 18:01:10 +1100
changeset 321686 9ac2b2c34c7c00f25cf52db499a8e53e9fe50bd6
parent 321597 cd2b53862f812ef4a522a39a5b2a3b3780099ed9
child 321687 64552d361e5ebcc40e74f1f7929f5a9b8b61a8f2
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1244068
milestone47.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 1244068 - Part 1: Add enum to represent the style system backend type. r=dholbert
layout/style/StyleBackendType.h
layout/style/moz.build
new file mode 100644
--- /dev/null
+++ b/layout/style/StyleBackendType.h
@@ -0,0 +1,23 @@
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+#ifndef mozilla_StyleBackendType_h
+#define mozilla_StyleBackendType_h
+
+namespace mozilla {
+
+/**
+ * Enumeration that represents one of the two supported style system backends.
+ */
+enum class StyleBackendType : int
+{
+  Gecko,
+  Servo
+};
+
+} // namespace mozilla
+
+#endif // mozilla_StyleBackendType_h
--- a/layout/style/moz.build
+++ b/layout/style/moz.build
@@ -85,16 +85,17 @@ EXPORTS.mozilla += [
     'CSSVariableResolver.h',
     'CSSVariableValues.h',
     'IncrementalClearCOMRuleArray.h',
     'LayerAnimationInfo.h',
     'RuleNodeCacheConditions.h',
     'RuleProcessorCache.h',
     'SheetType.h',
     'StyleAnimationValue.h',
+    'StyleBackendType.h',
 ]
 
 EXPORTS.mozilla.dom += [
     'CSS.h',
     'CSSLexer.h',
     'CSSRuleList.h',
     'CSSValue.h',
     'FontFace.h',