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

Side by Side Diff: Source/core/dom/Node.cpp

Issue 23714003: Refactoring: Add Event::createBubble. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/FullscreenElementStack.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after
2471 return !beforeLoadEvent->defaultPrevented(); 2471 return !beforeLoadEvent->defaultPrevented();
2472 } 2472 }
2473 2473
2474 bool Node::dispatchWheelEvent(const PlatformWheelEvent& event) 2474 bool Node::dispatchWheelEvent(const PlatformWheelEvent& event)
2475 { 2475 {
2476 return EventDispatcher::dispatchEvent(this, WheelEventDispatchMediator::crea te(event, document()->defaultView())); 2476 return EventDispatcher::dispatchEvent(this, WheelEventDispatchMediator::crea te(event, document()->defaultView()));
2477 } 2477 }
2478 2478
2479 void Node::dispatchChangeEvent() 2479 void Node::dispatchChangeEvent()
2480 { 2480 {
2481 dispatchScopedEvent(Event::create(eventNames().changeEvent, true, false)); 2481 dispatchScopedEvent(Event::createBubble(eventNames().changeEvent));
2482 } 2482 }
2483 2483
2484 void Node::dispatchInputEvent() 2484 void Node::dispatchInputEvent()
2485 { 2485 {
2486 dispatchScopedEvent(Event::create(eventNames().inputEvent, true, false)); 2486 dispatchScopedEvent(Event::createBubble(eventNames().inputEvent));
2487 } 2487 }
2488 2488
2489 void Node::defaultEventHandler(Event* event) 2489 void Node::defaultEventHandler(Event* event)
2490 { 2490 {
2491 if (event->target() != this) 2491 if (event->target() != this)
2492 return; 2492 return;
2493 const AtomicString& eventType = event->type(); 2493 const AtomicString& eventType = event->type();
2494 if (eventType == eventNames().keydownEvent || eventType == eventNames().keyp ressEvent) { 2494 if (eventType == eventNames().keydownEvent || eventType == eventNames().keyp ressEvent) {
2495 if (event->isKeyboardEvent()) { 2495 if (event->isKeyboardEvent()) {
2496 if (Frame* frame = document()->frame()) 2496 if (Frame* frame = document()->frame())
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
2773 node->showTreeForThis(); 2773 node->showTreeForThis();
2774 } 2774 }
2775 2775
2776 void showNodePath(const WebCore::Node* node) 2776 void showNodePath(const WebCore::Node* node)
2777 { 2777 {
2778 if (node) 2778 if (node)
2779 node->showNodePathForThis(); 2779 node->showNodePathForThis();
2780 } 2780 }
2781 2781
2782 #endif 2782 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/FullscreenElementStack.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698