Bug 829867. Unpref PaintRequest and Screen WebIDL bindings and remove some cruft from quickstubs. r=peterv
authorBoris Zbarsky <bzbarsky@mit.edu>
Tue, 29 Jan 2013 12:52:09 -0500
changeset 120250 2a0424e177c19a871d287a50688ac71efcac8458
parent 120249 22695cac389690829d6f9860c92a381b969c783c
child 120251 3a8a7a8502be210bd3748421c540512c6cb72765
push id24243
push userryanvm@gmail.com
push dateWed, 30 Jan 2013 00:49:21 +0000
treeherdermozilla-central@5c248ef0fe62 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspeterv
bugs829867, 826703, 824970, 801083
milestone21.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 829867. Unpref PaintRequest and Screen WebIDL bindings and remove some cruft from quickstubs. r=peterv nsIDOMCharacterData and nsIDOMText quickstubs are not needed after bug 826703. nsIDOMRect quickstubs haven't been needed since bug 824970 landed. nsCSSPropertiesQS has been unused since bug 801083 at least. The various includes being removed are either fully on WebIDL now or using WebIDL quickstubs.
dom/bindings/Bindings.conf
js/xpconnect/src/dom_quickstubs.qsconf
js/xpconnect/src/nsCSSPropertiesQS.h
--- a/dom/bindings/Bindings.conf
+++ b/dom/bindings/Bindings.conf
@@ -557,17 +557,16 @@ DOMInterfaces = {
 
 'NodeList': {
     'nativeType': 'nsINodeList',
     'resultNotAddRefed': [ 'item' ]
 },
 
 'PaintRequest': {
     'nativeType': 'nsPaintRequest',
-    'prefable': True
 },
 
 'PaintRequestList': {
     'nativeType': 'nsPaintRequestList',
     'headerFile': 'nsPaintRequest.h',
     'resultNotAddRefed': [ 'item' ]
 },
 
@@ -608,17 +607,16 @@ DOMInterfaces = {
 
 'RGBColor': {
     "nativeType": "nsDOMCSSRGBColor",
     'resultNotAddRefed': [ "alpha", "blue", "green", "red" ]
 },
 
 'Screen': {
     'nativeType': 'nsScreen',
-    'prefable': True,
 },
 
 'SVGAElement': {
   'hasInstanceInterface': 'nsIDOMSVGAElement',
 },
 
 'SVGAnimatedLengthList': {
     'nativeType': 'mozilla::DOMSVGAnimatedLengthList',
--- a/js/xpconnect/src/dom_quickstubs.qsconf
+++ b/js/xpconnect/src/dom_quickstubs.qsconf
@@ -41,45 +41,34 @@ members = [
     'nsIDOMWindow.scrollByLines',
     'nsIDOMWindow.getComputedStyle',
     'nsIDOMWindow.sessionStorage',
     'nsIDOMWindow.localStorage',
     'nsIDOMWindow.onmouseenter',
     'nsIDOMWindow.onmouseleave',
     'nsIDOMWindowPerformance.performance',
     'nsIDOMJSWindow.dump',
-    'nsIDOMScreen.top',
-    'nsIDOMScreen.height',
-    'nsIDOMScreen.width',
-    'nsIDOMScreen.left',
     'nsIDOMClientRect.*',
-    'nsIDOMPaintRequest.*',
     # nsLocationSH has ~ALLOW_PROP_MODS_TO_PROTOTYPE, so don't try.
     #'nsIDOMLocation.hostname',
     #'nsIDOMLocation.href',
 
     # dom/interfaces/canvas
     #
     # canvas friends
     'nsIDOMTextMetrics.*',
     'nsIDOMCanvasGradient.*',
     'nsIDOMCanvasPattern.*',
 
     # dom/interfaces/core
-    'nsIDOMCharacterData.data',
-    'nsIDOMCharacterData.length',
     'nsIDOMNamedNodeMap.item',
     'nsIDOMNamedNodeMap.length',
-    'nsIDOMText.splitText',
     'nsIDOMDOMStringList.*',
     'nsIDOMXULDocument.getBoxObjectFor',
 
-    # dom/interfaces/css
-    'nsIDOMRect.*',
-
     'nsIDOMEvent.type',
     'nsIDOMEvent.target',
     'nsIDOMEvent.currentTarget',
     'nsIDOMEvent.eventPhase',
     'nsIDOMEvent.bubbles',
     'nsIDOMEvent.cancelable',
     'nsIDOMEvent.timeStamp',
     'nsIDOMEvent.stopPropagation',
@@ -302,30 +291,18 @@ irregularFilenames = {
     'nsIDOMTouchList': 'nsIDOMTouchEvent',
 
     'nsITelephoneCallback': 'nsITelephone',
 
     'nsIDOMWindowPerformance': 'nsIDOMWindow',
     }
 
 customIncludes = [
-    'nsINode.h',
-    'nsIContent.h',
-    'nsIDocument.h',
-    'nsCSSPropertiesQS.h',
-    'nsDOMTokenList.h',
-    'nsGenericDOMDataNode.h',
-    'mozilla/dom/Element.h',
-    'nsGenericHTMLElement.h',
-    'nsSVGElement.h',
     'nsDOMQS.h',
-    'nsDOMStringMap.h',
-    'HTMLPropertiesCollection.h',
     'nsHTMLMenuElement.h',
-    'nsICSSDeclaration.h',
     'mozilla/dom/NodeBinding.h',
     'mozilla/dom/ElementBinding.h',
     'mozilla/dom/HTMLElementBinding.h',
     'mozilla/dom/DocumentBinding.h',
     'mozilla/dom/SVGElementBinding.h',
     'nsPerformance.h',
     'mozilla/dom/HTMLDocumentBinding.h',
     'mozilla/dom/EventTargetBinding.h',
deleted file mode 100644
--- a/js/xpconnect/src/nsCSSPropertiesQS.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/* 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 nsCSSPropertiesQS_h__
-#define nsCSSPropertiesQS_h__
-
-#include "nsICSSDeclaration.h"
-
-#define CSS_PROP_DOMPROP_PREFIXED(prop_) Moz ## prop_
-#define CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, \
-                 stylestruct_, stylestructoffset_, animtype_)                 \
-static const nsCSSProperty QS_CSS_PROP_##method_ = eCSSProperty_##id_;
-
-#define CSS_PROP_LIST_EXCLUDE_INTERNAL
-#define CSS_PROP_SHORTHAND(name_, id_, method_, flags_, pref_)	\
-  CSS_PROP(name_, id_, method_, flags_, pref_, X, X, X, X, X)
-#include "nsCSSPropList.h"
-
-#define CSS_PROP_ALIAS(aliasname_, propid_, aliasmethod_, pref_)  \
-  CSS_PROP(X, propid_, aliasmethod_, X, pref_, X, X, X, X, X)
-#include "nsCSSPropAliasList.h"
-#undef CSS_PROP_ALIAS
-
-#undef CSS_PROP_SHORTHAND
-#undef CSS_PROP_LIST_EXCLUDE_INTERNAL
-#undef CSS_PROP
-#undef CSS_PROP_DOMPROP_PREFIXED
-
-#endif /* nsCSSPropertiesQS_h__ */