Backed out changeset 24309d9b5c7e (bug 1250767) for Windows bustage. r=bustage on a CLOSED TREE
authorSebastian Hengst <archaeopteryx@coole-files.de>
Wed, 24 Feb 2016 22:51:02 +0100
changeset 321803 2dd26535e73c160f9ce478cd0561b7722042c0d3
parent 321802 198c8498c62e714e71738896716e636c35e9ca4a
child 321804 68c32347066363d90afaf8557ea2f7f4c0d3a4cf
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)
reviewersbustage
bugs1250767
milestone47.0a1
backs out24309d9b5c7e3d6be2811880a26771a0c781f89c
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
Backed out changeset 24309d9b5c7e (bug 1250767) for Windows bustage. r=bustage on a CLOSED TREE
layout/style/ServoBindings.cpp
layout/style/ServoBindings.h
layout/style/moz.build
deleted file mode 100644
--- a/layout/style/ServoBindings.cpp
+++ /dev/null
@@ -1,131 +0,0 @@
-/* -*- 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/. */
-
-#include "mozilla/ServoBindings.h"
-
-#include "nsCSSRuleProcessor.h"
-#include "nsContentUtils.h"
-#include "nsIDOMNode.h"
-#include "nsIDocument.h"
-#include "nsINode.h"
-#include "nsNameSpaceManager.h"
-#include "nsString.h"
-
-#include "mozilla/EventStates.h"
-#include "mozilla/dom/Element.h"
-
-uint32_t
-Gecko_ChildrenCount(RawGeckoNode* aNode)
-{
-  return aNode->GetChildCount();
-}
-
-int
-Gecko_NodeIsElement(RawGeckoNode* aNode)
-{
-  return aNode->IsElement();
-}
-
-RawGeckoNode*
-Gecko_GetParentNode(RawGeckoNode* aNode)
-{
-  return aNode->GetParentNode();
-}
-
-RawGeckoNode*
-Gecko_GetFirstChild(RawGeckoNode* aNode)
-{
-  return aNode->GetFirstChild();
-}
-
-RawGeckoNode*
-Gecko_GetLastChild(RawGeckoNode* aNode)
-{
-  return aNode->GetLastChild();
-}
-
-RawGeckoNode*
-Gecko_GetPrevSibling(RawGeckoNode* aNode)
-{
-  return aNode->GetPreviousSibling();
-}
-
-RawGeckoNode*
-Gecko_GetNextSibling(RawGeckoNode* aNode)
-{
-  return aNode->GetNextSibling();
-}
-
-RawGeckoElement*
-Gecko_GetParentElement(RawGeckoElement* aElement)
-{
-  return aElement->GetParentElement();
-}
-
-RawGeckoElement*
-Gecko_GetFirstChildElement(RawGeckoElement* aElement)
-{
-  return aElement->GetFirstElementChild();
-}
-
-RawGeckoElement* Gecko_GetLastChildElement(RawGeckoElement* aElement)
-{
-  return aElement->GetLastElementChild();
-}
-
-RawGeckoElement*
-Gecko_GetPrevSiblingElement(RawGeckoElement* aElement)
-{
-  return aElement->GetPreviousElementSibling();
-}
-
-RawGeckoElement*
-Gecko_GetNextSiblingElement(RawGeckoElement* aElement)
-{
-  return aElement->GetNextElementSibling();
-}
-
-RawGeckoElement*
-Gecko_GetDocumentElement(RawGeckoDocument* aDoc)
-{
-  return aDoc->GetDocumentElement();
-}
-
-int
-Gecko_IsHTMLElementInHTMLDocument(RawGeckoElement* aElement)
-{
-  return aElement->IsHTMLElement() && aElement->OwnerDoc()->IsHTMLDocument();
-}
-
-int
-Gecko_IsLink(RawGeckoElement* aElement)
-{
-  return nsCSSRuleProcessor::IsLink(aElement);
-}
-
-int Gecko_IsTextNode(RawGeckoNode* aNode)
-{
-  return aNode->NodeInfo()->NodeType() == nsIDOMNode::TEXT_NODE;
-}
-
-int
-Gecko_IsVisitedLink(RawGeckoElement* aElement)
-{
-  return aElement->StyleState().HasState(NS_EVENT_STATE_VISITED);
-}
-
-int
-Gecko_IsUnvisitedLink(RawGeckoElement* aElement)
-{
-  return aElement->StyleState().HasState(NS_EVENT_STATE_UNVISITED);
-}
-
-int
-Gecko_IsRootElement(RawGeckoElement* aElement)
-{
-  return aElement->OwnerDoc()->GetRootElement() == aElement;
-}
-
deleted file mode 100644
--- a/layout/style/ServoBindings.h
+++ /dev/null
@@ -1,71 +0,0 @@
-/* -*- 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_ServoBindings_h
-#define mozilla_ServoBindings_h
-
-#include <stdint.h>
-
-/*
- * API for Servo to access Gecko data structures. This file must compile as valid
- * C code in order for the binding generator to parse it.
- *
- * Functions beginning with Gecko_ are implemented in Gecko and invoked from Servo.
- * Functions beginning with Servo_ are implemented in Servo and invoked from Gecko.
- */
-
-#ifdef __cplusplus
-class nsINode;
-typedef nsINode RawGeckoNode;
-namespace mozilla { namespace dom { class Element; } }
-using mozilla::dom::Element;
-typedef mozilla::dom::Element RawGeckoElement;
-class nsIDocument;
-typedef nsIDocument RawGeckoDocument;
-#else
-struct RawGeckoNode;
-typedef struct RawGeckoNode RawGeckoNode;
-struct RawGeckoElement;
-typedef struct RawGeckoElement RawGeckoElement;
-struct RawGeckoDocument;
-typedef struct RawGeckoDocument RawGeckoDocument;
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-// DOM Traversal.
-uint32_t Gecko_ChildrenCount(RawGeckoNode* node);
-int Gecko_NodeIsElement(RawGeckoNode* node);
-RawGeckoNode* Gecko_GetParentNode(RawGeckoNode* node);
-RawGeckoNode* Gecko_GetFirstChild(RawGeckoNode* node);
-RawGeckoNode* Gecko_GetLastChild(RawGeckoNode* node);
-RawGeckoNode* Gecko_GetPrevSibling(RawGeckoNode* node);
-RawGeckoNode* Gecko_GetNextSibling(RawGeckoNode* node);
-RawGeckoElement* Gecko_GetParentElement(RawGeckoElement* element);
-RawGeckoElement* Gecko_GetFirstChildElement(RawGeckoElement* element);
-RawGeckoElement* Gecko_GetLastChildElement(RawGeckoElement* element);
-RawGeckoElement* Gecko_GetPrevSiblingElement(RawGeckoElement* element);
-RawGeckoElement* Gecko_GetNextSiblingElement(RawGeckoElement* element);
-RawGeckoElement* Gecko_GetDocumentElement(RawGeckoDocument* document);
-
-// Selector Matching.
-int Gecko_IsHTMLElementInHTMLDocument(RawGeckoElement* element);
-int Gecko_IsLink(RawGeckoElement* element);
-int Gecko_IsTextNode(RawGeckoNode* node);
-int Gecko_IsVisitedLink(RawGeckoElement* element);
-int Gecko_IsUnvisitedLink(RawGeckoElement* element);
-int Gecko_IsRootElement(RawGeckoElement* element);
-
-// Servo API.
-void Servo_RestyleDocument(RawGeckoDocument* aDoc);
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
-
-#endif // mozilla_ServoBindings_h
--- a/layout/style/moz.build
+++ b/layout/style/moz.build
@@ -84,17 +84,16 @@ EXPORTS.mozilla += [
     'CSSVariableDeclarations.h',
     'CSSVariableResolver.h',
     'CSSVariableValues.h',
     'HandleRefPtr.h',
     'IncrementalClearCOMRuleArray.h',
     'LayerAnimationInfo.h',
     'RuleNodeCacheConditions.h',
     'RuleProcessorCache.h',
-    'ServoBindings.h',
     'ServoStyleSet.h',
     'ServoStyleSheet.h',
     'SheetType.h',
     'StyleAnimationValue.h',
     'StyleBackendType.h',
     'StyleSetHandle.h',
     'StyleSetHandleInlines.h',
     'StyleSheetHandle.h',
@@ -176,17 +175,16 @@ UNIFIED_SOURCES += [
     'nsStyleCoord.cpp',
     'nsStyleSet.cpp',
     'nsStyleStruct.cpp',
     'nsStyleTransformMatrix.cpp',
     'nsStyleUtil.cpp',
     'nsTransitionManager.cpp',
     'RuleNodeCacheConditions.cpp',
     'RuleProcessorCache.cpp',
-    'ServoBindings.cpp',
     'ServoStyleSet.cpp',
     'ServoStyleSheet.cpp',
     'StyleAnimationValue.cpp',
     'StyleRule.cpp',
     'SVGAttrAnimationRuleProcessor.cpp',
 ]
 
 # nsCSSRuleProcessor.cpp needs to be built separately because it uses plarena.h.