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

Unified Diff: Source/core/dom/Node.cpp

Issue 26890003: Remove ThreadLocalEventNames (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix build Created 7 years, 2 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 | « Source/core/dom/NamedFlow.cpp ('k') | Source/core/events/AutocompleteErrorEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index ff8d7dbbb0bb25966b29ee9564cd998f19924d9d..387821894dbe11c07d499217651ec53154d11a93 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -1991,7 +1991,7 @@ Node* Node::enclosingLinkEventParentOrSelf()
const AtomicString& Node::interfaceName() const
{
- return eventNames().interfaceForNode;
+ return EventTargetNames::Node;
}
ExecutionContext* Node::executionContext() const
@@ -2364,7 +2364,7 @@ void Node::defaultEventHandler(Event* event)
if (Page* page = document().page())
page->contextMenuController().handleContextMenuEvent(event);
} else if (eventType == EventTypeNames::textInput) {
- if (event->hasInterface(eventNames().interfaceForTextEvent))
+ if (event->hasInterface(EventNames::TextEvent))
if (Frame* frame = document().frame())
frame->eventHandler()->defaultTextInputEventHandler(static_cast<TextEvent*>(event));
#if OS(WIN)
@@ -2384,7 +2384,7 @@ void Node::defaultEventHandler(Event* event)
}
}
#endif
- } else if ((eventType == EventTypeNames::wheel || eventType == EventTypeNames::mousewheel) && event->hasInterface(eventNames().interfaceForWheelEvent)) {
+ } else if ((eventType == EventTypeNames::wheel || eventType == EventTypeNames::mousewheel) && event->hasInterface(EventNames::WheelEvent)) {
WheelEvent* wheelEvent = static_cast<WheelEvent*>(event);
// If we don't have a renderer, send the wheel event to the first node we find with a renderer.
« no previous file with comments | « Source/core/dom/NamedFlow.cpp ('k') | Source/core/events/AutocompleteErrorEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698