diff options
author | Andrei Popescu <andreip@google.com> | 2009-08-14 13:27:04 +0100 |
---|---|---|
committer | Andrei Popescu <andreip@google.com> | 2009-08-14 13:36:10 +0100 |
commit | d9d6ce217832bcffb8c0e17889754a4e6e2d5068 (patch) | |
tree | 69817a04a19c23e4968f1889466f1f16072f42ed /WebCore/bindings | |
parent | c0db6fc8961d84b887cafea4ea2fd3b63fbea8a9 (diff) | |
download | external_webkit-d9d6ce217832bcffb8c0e17889754a4e6e2d5068.zip external_webkit-d9d6ce217832bcffb8c0e17889754a4e6e2d5068.tar.gz external_webkit-d9d6ce217832bcffb8c0e17889754a4e6e2d5068.tar.bz2 |
More V8 compliation fixes
Diffstat (limited to 'WebCore/bindings')
-rw-r--r-- | WebCore/bindings/v8/V8DOMWrapper.cpp | 9 | ||||
-rw-r--r-- | WebCore/bindings/v8/custom/V8CustomBinding.h | 4 |
2 files changed, 11 insertions, 2 deletions
diff --git a/WebCore/bindings/v8/V8DOMWrapper.cpp b/WebCore/bindings/v8/V8DOMWrapper.cpp index 0c730df..9ce64a2 100644 --- a/WebCore/bindings/v8/V8DOMWrapper.cpp +++ b/WebCore/bindings/v8/V8DOMWrapper.cpp @@ -31,7 +31,9 @@ #include "config.h" #include "V8DOMWrapper.h" +#if PLATFORM(CHROMIUM) #include "ChromiumBridge.h" +#endif #include "CSSMutableStyleDeclaration.h" #include "DOMObjectsInclude.h" #include "DocumentLoader.h" @@ -459,17 +461,20 @@ v8::Persistent<v8::FunctionTemplate> V8DOMWrapper::getTemplate(V8ClassIndex::V8W instanceTemplate->SetInternalFieldCount(V8Custom::kXMLHttpRequestInternalFieldCount); break; } +#if ENABLE(XPATH) case V8ClassIndex::XPATHEVALUATOR: descriptor->SetCallHandler(USE_CALLBACK(XPathEvaluatorConstructor)); break; +#endif +#if ENABLE(XSLT) case V8ClassIndex::XSLTPROCESSOR: descriptor->SetCallHandler(USE_CALLBACK(XSLTProcessorConstructor)); break; +#endif #if ENABLE(TOUCH_EVENTS) // TODO(andreip): upstream touch related changes to Chromium case V8ClassIndex::TOUCHLIST: - desc->InstanceTemplate()->SetIndexedPropertyHandler( - USE_INDEXED_PROPERTY_GETTER(TouchList)); + instanceTemplate->SetIndexedPropertyHandler(USE_INDEXED_PROPERTY_GETTER(TouchList)); break; #endif case V8ClassIndex::CLIENTRECTLIST: diff --git a/WebCore/bindings/v8/custom/V8CustomBinding.h b/WebCore/bindings/v8/custom/V8CustomBinding.h index b72a349..80fed1d 100644 --- a/WebCore/bindings/v8/custom/V8CustomBinding.h +++ b/WebCore/bindings/v8/custom/V8CustomBinding.h @@ -486,6 +486,10 @@ namespace WebCore { DECLARE_CALLBACK(SVGElementInstanceRemoveEventListener); #endif +#if ENABLE(TOUCH_EVENTS) + DECLARE_INDEXED_PROPERTY_GETTER(TouchList); +#endif + #if ENABLE(WORKERS) DECLARE_PROPERTY_ACCESSOR(AbstractWorkerOnerror); DECLARE_CALLBACK(AbstractWorkerAddEventListener); |