summaryrefslogtreecommitdiffstats
path: root/webkit/port
diff options
context:
space:
mode:
authormbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-31 02:49:31 +0000
committermbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-31 02:49:31 +0000
commit13301121d7efad67b74f0e0b6a4c1f46d866c425 (patch)
tree88134949b803b4bad547cd065e5fc4a5f455935a /webkit/port
parent4a2952faa6a9aa19d02cf671543df4fbe0531b74 (diff)
downloadchromium_src-13301121d7efad67b74f0e0b6a4c1f46d866c425.zip
chromium_src-13301121d7efad67b74f0e0b6a4c1f46d866c425.tar.gz
chromium_src-13301121d7efad67b74f0e0b6a4c1f46d866c425.tar.bz2
Split the NONNODE_WRAPPER_TYPES into two parts
because Visual Studio's intellisense crashes when macros are too big (apparently). Thanks to Nicolas for finding the place where VS was crashing. Review URL: http://codereview.chromium.org/8757 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4265 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port')
-rw-r--r--webkit/port/bindings/v8/v8_index.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/webkit/port/bindings/v8/v8_index.h b/webkit/port/bindings/v8/v8_index.h
index 5ba923d..eb846fd 100644
--- a/webkit/port/bindings/v8/v8_index.h
+++ b/webkit/port/bindings/v8/v8_index.h
@@ -207,7 +207,9 @@ typedef v8::Persistent<v8::FunctionTemplate> (*FunctionTemplateFactory)();
V(SVGELEMENT, SVGElement)
#endif
-
+// NOTE: NONNODE_WRAPPER_TYPES is split into two halves because
+// Visual Studio's Intellinonsense crashes when macros get
+// too large. 10-29-08
#define NONNODE_WRAPPER_TYPES(V) \
V(BARINFO, BarInfo) \
V(CANVASGRADIENT, CanvasGradient) \
@@ -249,7 +251,9 @@ typedef v8::Persistent<v8::FunctionTemplate> (*FunctionTemplateFactory)();
V(INSPECTORCONTROLLER, InspectorController) \
V(KEYBOARDEVENT, KeyboardEvent) \
V(LOCATION, Location) \
- V(MEDIALIST, MediaList) \
+ V(MEDIALIST, MediaList)
+
+#define NONNODE_WRAPPER_TYPES_2(V) \
V(MESSAGECHANNEL, MessageChannel) \
V(MESSAGEEVENT, MessageEvent) \
V(MESSAGEPORT, MessagePort) \
@@ -369,6 +373,7 @@ typedef v8::Persistent<v8::FunctionTemplate> (*FunctionTemplateFactory)();
NODE_WRAPPER_TYPES(V) \
HTMLELEMENT_TYPES(V) \
NONNODE_WRAPPER_TYPES(V) \
+ NONNODE_WRAPPER_TYPES_2(V) \
SVGNODE_WRAPPER_TYPES(V) \
SVGELEMENT_TYPES(V) \
SVGNONNODE_WRAPPER_TYPES(V)
@@ -376,7 +381,8 @@ typedef v8::Persistent<v8::FunctionTemplate> (*FunctionTemplateFactory)();
#define WRAPPER_TYPES(V) \
NODE_WRAPPER_TYPES(V) \
HTMLELEMENT_TYPES(V) \
- NONNODE_WRAPPER_TYPES(V)
+ NONNODE_WRAPPER_TYPES(V) \
+ NONNODE_WRAPPER_TYPES_2(V)
#endif
#define ALL_WRAPPER_TYPES(V) \