summaryrefslogtreecommitdiffstats
path: root/webkit/port/bindings/v8
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/port/bindings/v8')
-rw-r--r--webkit/port/bindings/v8/V8XMLHttpRequestCustom.cpp10
-rw-r--r--webkit/port/bindings/v8/v8_custom.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/webkit/port/bindings/v8/V8XMLHttpRequestCustom.cpp b/webkit/port/bindings/v8/V8XMLHttpRequestCustom.cpp
index b40d659..91b048bd 100644
--- a/webkit/port/bindings/v8/V8XMLHttpRequestCustom.cpp
+++ b/webkit/port/bindings/v8/V8XMLHttpRequestCustom.cpp
@@ -350,6 +350,16 @@ ACCESSOR_SETTER(XMLHttpRequestOnreadystatechange)
}
}
+ACCESSOR_GETTER(XMLHttpRequestResponseText)
+{
+ // This is only needed because webkit set this getter as custom.
+ // So we need a custom method to avoid forking the IDL file.
+ INC_STATS("DOM.XMLHttpRequest.responsetext._get");
+ XMLHttpRequest* imp = V8Proxy::ToNativeObject<XMLHttpRequest>(
+ V8ClassIndex::XMLHTTPREQUEST, info.Holder());
+ return v8StringOrNull(imp->responseText());
+}
+
CALLBACK_FUNC_DECL(XMLHttpRequestAddEventListener)
{
INC_STATS("DOM.XMLHttpRequest.addEventListener()");
diff --git a/webkit/port/bindings/v8/v8_custom.h b/webkit/port/bindings/v8/v8_custom.h
index de64bd7..8199fe9 100644
--- a/webkit/port/bindings/v8/v8_custom.h
+++ b/webkit/port/bindings/v8/v8_custom.h
@@ -316,6 +316,7 @@ DECLARE_PROPERTY_ACCESSOR(XMLHttpRequestOnload)
DECLARE_PROPERTY_ACCESSOR(XMLHttpRequestOnloadstart)
DECLARE_PROPERTY_ACCESSOR(XMLHttpRequestOnprogress)
DECLARE_PROPERTY_ACCESSOR(XMLHttpRequestOnreadystatechange)
+DECLARE_PROPERTY_ACCESSOR(XMLHttpRequestResponseText)
DECLARE_CALLBACK(XMLHttpRequestAddEventListener)
DECLARE_CALLBACK(XMLHttpRequestRemoveEventListener)
DECLARE_CALLBACK(XMLHttpRequestOpen)