summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/bindings/v8/V8DOMWrapper.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/WebCore/bindings/v8/V8DOMWrapper.cpp b/WebCore/bindings/v8/V8DOMWrapper.cpp
index 9ce64a2..278555e 100644
--- a/WebCore/bindings/v8/V8DOMWrapper.cpp
+++ b/WebCore/bindings/v8/V8DOMWrapper.cpp
@@ -473,9 +473,11 @@ v8::Persistent<v8::FunctionTemplate> V8DOMWrapper::getTemplate(V8ClassIndex::V8W
#endif
#if ENABLE(TOUCH_EVENTS)
// TODO(andreip): upstream touch related changes to Chromium
- case V8ClassIndex::TOUCHLIST:
+ case V8ClassIndex::TOUCHLIST: {
+ v8::Local<v8::ObjectTemplate> instanceTemplate = descriptor->InstanceTemplate();
instanceTemplate->SetIndexedPropertyHandler(USE_INDEXED_PROPERTY_GETTER(TouchList));
break;
+ }
#endif
case V8ClassIndex::CLIENTRECTLIST:
descriptor->InstanceTemplate()->SetIndexedPropertyHandler(USE_INDEXED_PROPERTY_GETTER(ClientRectList));