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

Side by Side Diff: third_party/WebKit/Source/core/events/TextEvent.cpp

Issue 1925963002: InitEvent should not do anything if dispatch flag is set. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated as per review comments Created 4 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 , m_shouldMatchStyle(shouldMatchStyle) 82 , m_shouldMatchStyle(shouldMatchStyle)
83 { 83 {
84 } 84 }
85 85
86 TextEvent::~TextEvent() 86 TextEvent::~TextEvent()
87 { 87 {
88 } 88 }
89 89
90 void TextEvent::initTextEvent(const AtomicString& type, bool canBubble, bool can celable, AbstractView* view, const String& data) 90 void TextEvent::initTextEvent(const AtomicString& type, bool canBubble, bool can celable, AbstractView* view, const String& data)
91 { 91 {
92 if (dispatched()) 92 if (isBeingDispatched())
93 return; 93 return;
94 94
95 initUIEvent(type, canBubble, cancelable, view, 0); 95 initUIEvent(type, canBubble, cancelable, view, 0);
96 96
97 m_data = data; 97 m_data = data;
98 } 98 }
99 99
100 const AtomicString& TextEvent::interfaceName() const 100 const AtomicString& TextEvent::interfaceName() const
101 { 101 {
102 return EventNames::TextEvent; 102 return EventNames::TextEvent;
103 } 103 }
104 104
105 DEFINE_TRACE(TextEvent) 105 DEFINE_TRACE(TextEvent)
106 { 106 {
107 visitor->trace(m_pastingFragment); 107 visitor->trace(m_pastingFragment);
108 UIEvent::trace(visitor); 108 UIEvent::trace(visitor);
109 } 109 }
110 110
111 } // namespace blink 111 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/MutationEvent.cpp ('k') | third_party/WebKit/Source/core/events/TouchEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698