summaryrefslogtreecommitdiffstats
path: root/webkit/port
diff options
context:
space:
mode:
authorfqian@google.com <fqian@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-12 15:49:05 +0000
committerfqian@google.com <fqian@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-12 15:49:05 +0000
commit6043312ed0815d5cdeb625638c56a284e8b62755 (patch)
treedf9f2c7b9df36ca0e5fc3dc4a06ecf6fb44b1598 /webkit/port
parent8772ee554b29a74ecc3d882833acf22ed5581adc (diff)
downloadchromium_src-6043312ed0815d5cdeb625638c56a284e8b62755.zip
chromium_src-6043312ed0815d5cdeb625638c56a284e8b62755.tar.gz
chromium_src-6043312ed0815d5cdeb625638c56a284e8b62755.tar.bz2
I took the patch from bill.neubauer@gmail.com (http://codereview.chromium.org/1919 Patch Set 1)
and changed the test to be a real layout test and added expected output. Review URL: http://codereview.chromium.org/2459 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2111 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port')
-rw-r--r--webkit/port/bindings/v8/v8_events.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/port/bindings/v8/v8_events.cpp b/webkit/port/bindings/v8/v8_events.cpp
index 38e3802..47a9b39 100644
--- a/webkit/port/bindings/v8/v8_events.cpp
+++ b/webkit/port/bindings/v8/v8_events.cpp
@@ -437,9 +437,9 @@ v8::Local<v8::Function> V8LazyEventListener::GetWrappedListenerFunction() {
code.append(" with (this.ownerDocument ? this.ownerDocument : {}) {\n");
code.append(" with (this.form ? this.form : {}) {\n");
code.append(" with (this) {\n");
- code.append(" ");
+ code.append(" return (function(evt){");
code.append(m_code);
- code.append("\n");
+ code.append("}).call(this, evt);\n");
code.append(" }\n");
code.append(" }\n");
code.append(" }\n");