Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(731)

Unified Diff: webkit/port/bindings/v8/v8_custom.cpp

Issue 92051: Merge: chromium side [42671:42725]... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/webframe_impl.cc ('k') | webkit/tools/layout_tests/test_expectations.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/port/bindings/v8/v8_custom.cpp
===================================================================
--- webkit/port/bindings/v8/v8_custom.cpp (revision 14126)
+++ webkit/port/bindings/v8/v8_custom.cpp (working copy)
@@ -1072,7 +1072,7 @@
if (value->IsNull()) {
// Clear the event listener
- imp->clearInlineEventListener(event_type);
+ imp->clearAttributeEventListener(event_type);
} else {
V8Proxy* proxy = V8Proxy::retrieve(imp->frame());
if (!proxy)
@@ -1081,7 +1081,7 @@
RefPtr<EventListener> listener =
proxy->FindOrCreateV8EventListener(value, true);
if (listener) {
- imp->setInlineEventListener(event_type, listener);
+ imp->setAttributeEventListener(event_type, listener);
}
}
}
@@ -1105,7 +1105,7 @@
String key = ToWebCoreString(name);
String event_type = EventNameFromAttributeName(key);
- EventListener* listener = imp->getInlineEventListener(event_type);
+ EventListener* listener = imp->getAttributeEventListener(event_type);
return V8Proxy::EventListenerToV8Object(listener);
}
@@ -1132,10 +1132,10 @@
RefPtr<EventListener> listener =
proxy->FindOrCreateV8EventListener(value, true);
if (listener) {
- node->setInlineEventListener(event_type, listener);
+ node->setAttributeEventListener(event_type, listener);
}
} else {
- node->clearInlineEventListener(event_type);
+ node->clearAttributeEventListener(event_type);
}
}
@@ -1148,7 +1148,7 @@
ASSERT(key.startsWith("on"));
String event_type = key.substring(2);
- EventListener* listener = node->getInlineEventListener(event_type);
+ EventListener* listener = node->getAttributeEventListener(event_type);
return V8Proxy::EventListenerToV8Object(listener);
}
« no previous file with comments | « webkit/glue/webframe_impl.cc ('k') | webkit/tools/layout_tests/test_expectations.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698