summaryrefslogtreecommitdiffstats
path: root/webkit/port/bindings/v8/v8_proxy.cpp
diff options
context:
space:
mode:
authorojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-20 19:01:55 +0000
committerojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-20 19:01:55 +0000
commitc3fd33c7c7d807d79914337e9beb805b1bd1f54c (patch)
treeaa2eb235662b9159eb0e21ec1fe3006d0d30a5ec /webkit/port/bindings/v8/v8_proxy.cpp
parent6bfd15cabdcf379bd5e1e0dfb9b42fadef477400 (diff)
downloadchromium_src-c3fd33c7c7d807d79914337e9beb805b1bd1f54c.zip
chromium_src-c3fd33c7c7d807d79914337e9beb805b1bd1f54c.tar.gz
chromium_src-c3fd33c7c7d807d79914337e9beb805b1bd1f54c.tar.bz2
Rollback 3612 abd 3613 to fix mac build. TBR.
Review URL: http://codereview.chromium.org/7674 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3618 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port/bindings/v8/v8_proxy.cpp')
-rw-r--r--webkit/port/bindings/v8/v8_proxy.cpp44
1 files changed, 15 insertions, 29 deletions
diff --git a/webkit/port/bindings/v8/v8_proxy.cpp b/webkit/port/bindings/v8/v8_proxy.cpp
index 81df91f..bc8f183 100644
--- a/webkit/port/bindings/v8/v8_proxy.cpp
+++ b/webkit/port/bindings/v8/v8_proxy.cpp
@@ -73,24 +73,20 @@
#include "EventTarget.h"
#include "Event.h"
#include "HTMLInputElement.h"
+#include "XMLHttpRequest.h"
+#include "StyleSheet.h"
+#include "StyleSheetList.h"
#include "CSSRule.h"
#include "CSSRuleList.h"
#include "CSSValueList.h"
#include "CSSVariablesDeclaration.h"
#include "FrameLoader.h"
#include "FrameTree.h"
-#include "MimeTypeArray.h"
-#include "NodeFilter.h"
-#include "Plugin.h"
-#include "PluginArray.h"
#include "RangeException.h"
#include "ScriptController.h"
+#include "NodeFilter.h"
#include "SecurityOrigin.h"
-#include "Settings.h"
-#include "StyleSheet.h"
-#include "StyleSheetList.h"
#include "WebKitCSSTransformValue.h"
-#include "XMLHttpRequest.h"
#include "XMLHttpRequestException.h"
#include "XPathException.h"
@@ -1127,13 +1123,10 @@ v8::Persistent<v8::FunctionTemplate> V8Proxy::GetTemplate(
SetCollectionStringOrNullIndexedGetter<CSSStyleDeclaration>(desc);
break;
case V8ClassIndex::CSSRULELIST:
- SetCollectionIndexedGetter<CSSRuleList, CSSRule>(desc,
- V8ClassIndex::CSSRULE);
+ SetCollectionIndexedGetter<CSSRuleList>(desc, V8ClassIndex::CSSRULE);
break;
case V8ClassIndex::CSSVALUELIST:
- SetCollectionIndexedGetter<CSSValueList, CSSValue>(
- desc,
- V8ClassIndex::CSSVALUE);
+ SetCollectionIndexedGetter<CSSValueList>(desc, V8ClassIndex::CSSVALUE);
break;
case V8ClassIndex::CSSVARIABLESDECLARATION:
SetCollectionStringOrNullIndexedGetter<CSSVariablesDeclaration>(desc);
@@ -1145,13 +1138,10 @@ v8::Persistent<v8::FunctionTemplate> V8Proxy::GetTemplate(
USE_NAMED_PROPERTY_GETTER(HTMLCollection));
desc->InstanceTemplate()->SetCallAsFunctionHandler(
USE_CALLBACK(HTMLCollectionCallAsFunction));
- SetCollectionIndexedGetter<HTMLCollection, Node>(desc,
- V8ClassIndex::NODE);
+ SetCollectionIndexedGetter<HTMLCollection>(desc, V8ClassIndex::NODE);
break;
case V8ClassIndex::HTMLOPTIONSCOLLECTION:
- SetCollectionNamedGetter<HTMLOptionsCollection, Node>(
- desc,
- V8ClassIndex::NODE);
+ SetCollectionNamedGetter<HTMLOptionsCollection>(desc, V8ClassIndex::NODE);
desc->InstanceTemplate()->SetIndexedPropertyHandler(
USE_INDEXED_PROPERTY_GETTER(HTMLOptionsCollection),
USE_INDEXED_PROPERTY_SETTER(HTMLOptionsCollection));
@@ -1261,7 +1251,7 @@ v8::Persistent<v8::FunctionTemplate> V8Proxy::GetTemplate(
SetCollectionStringOrNullIndexedGetter<MediaList>(desc);
break;
case V8ClassIndex::MIMETYPEARRAY:
- SetCollectionIndexedAndNamedGetters<MimeTypeArray, MimeType>(
+ SetCollectionIndexedAndNamedGetters<MimeTypeArray>(
desc,
V8ClassIndex::MIMETYPE);
break;
@@ -1277,26 +1267,22 @@ v8::Persistent<v8::FunctionTemplate> V8Proxy::GetTemplate(
v8::External::New(reinterpret_cast<void*>(V8ClassIndex::NODE)));
break;
case V8ClassIndex::NODELIST:
- SetCollectionIndexedGetter<NodeList, Node>(desc, V8ClassIndex::NODE);
+ SetCollectionIndexedGetter<NodeList>(desc, V8ClassIndex::NODE);
desc->InstanceTemplate()->SetNamedPropertyHandler(
USE_NAMED_PROPERTY_GETTER(NodeList));
break;
case V8ClassIndex::PLUGIN:
- SetCollectionIndexedAndNamedGetters<Plugin, MimeType>(
- desc,
- V8ClassIndex::MIMETYPE);
+ SetCollectionIndexedAndNamedGetters<Plugin>(desc, V8ClassIndex::MIMETYPE);
break;
case V8ClassIndex::PLUGINARRAY:
- SetCollectionIndexedAndNamedGetters<PluginArray, Plugin>(
- desc,
- V8ClassIndex::PLUGIN);
+ SetCollectionIndexedAndNamedGetters<PluginArray>(desc,
+ V8ClassIndex::PLUGIN);
break;
case V8ClassIndex::STYLESHEETLIST:
desc->InstanceTemplate()->SetNamedPropertyHandler(
USE_NAMED_PROPERTY_GETTER(StyleSheetList));
- SetCollectionIndexedGetter<StyleSheetList, StyleSheet>(
- desc,
- V8ClassIndex::STYLESHEET);
+ SetCollectionIndexedGetter<StyleSheetList>(desc,
+ V8ClassIndex::STYLESHEET);
break;
case V8ClassIndex::DOMWINDOW: {
v8::Local<v8::Signature> default_signature = v8::Signature::New(desc);