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

Side by Side Diff: third_party/WebKit/Source/core/events/MutationEvent.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) 2001 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de)
4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 * Copyright (C) 2003, 2005, 2006, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2008 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } 42 }
43 43
44 MutationEvent::~MutationEvent() 44 MutationEvent::~MutationEvent()
45 { 45 {
46 } 46 }
47 47
48 void MutationEvent::initMutationEvent(const AtomicString& type, bool canBubble, bool cancelable, Node* relatedNode, 48 void MutationEvent::initMutationEvent(const AtomicString& type, bool canBubble, bool cancelable, Node* relatedNode,
49 const String& prevValue, const String& new Value, 49 const String& prevValue, const String& new Value,
50 const String& attrName, unsigned short att rChange) 50 const String& attrName, unsigned short att rChange)
51 { 51 {
52 if (dispatched()) 52 if (isBeingDispatched())
53 return; 53 return;
54 54
55 initEvent(type, canBubble, cancelable); 55 initEvent(type, canBubble, cancelable);
56 56
57 m_relatedNode = relatedNode; 57 m_relatedNode = relatedNode;
58 m_prevValue = prevValue; 58 m_prevValue = prevValue;
59 m_newValue = newValue; 59 m_newValue = newValue;
60 m_attrName = attrName; 60 m_attrName = attrName;
61 m_attrChange = attrChange; 61 m_attrChange = attrChange;
62 } 62 }
63 63
64 const AtomicString& MutationEvent::interfaceName() const 64 const AtomicString& MutationEvent::interfaceName() const
65 { 65 {
66 return EventNames::MutationEvent; 66 return EventNames::MutationEvent;
67 } 67 }
68 68
69 DEFINE_TRACE(MutationEvent) 69 DEFINE_TRACE(MutationEvent)
70 { 70 {
71 visitor->trace(m_relatedNode); 71 visitor->trace(m_relatedNode);
72 Event::trace(visitor); 72 Event::trace(visitor);
73 } 73 }
74 74
75 } // namespace blink 75 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/MouseEvent.cpp ('k') | third_party/WebKit/Source/core/events/TextEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698