From e0a5b89284138c0242312385bbde55328a5904ed Mon Sep 17 00:00:00 2001 From: "ojan@google.com" Date: Wed, 26 Nov 2008 21:19:06 +0000 Subject: src/webkit side of webKit merge 38625:38653 Review URL: http://codereview.chromium.org/12690 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6052 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/port/bindings/v8/V8XMLHttpRequestCustom.cpp | 10 ++++++++++ webkit/port/bindings/v8/v8_custom.h | 1 + 2 files changed, 11 insertions(+) (limited to 'webkit/port/bindings/v8') 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( + 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) -- cgit v1.1