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/MutationEvent.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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 11 matching lines...) Expand all
22 22
23 #include "core/events/MutationEvent.h" 23 #include "core/events/MutationEvent.h"
24 24
25 namespace blink { 25 namespace blink {
26 26
27 MutationEvent::MutationEvent() 27 MutationEvent::MutationEvent()
28 : m_attrChange(0) 28 : m_attrChange(0)
29 { 29 {
30 } 30 }
31 31
32 MutationEvent::MutationEvent(const AtomicString& type, bool canBubble, bool canc elable, PassRefPtrWillBeRawPtr<Node> relatedNode, 32 MutationEvent::MutationEvent(const AtomicString& type, bool canBubble, bool canc elable, RawPtr<Node> relatedNode,
33 const String& prevValue, const String& newValue, 33 const String& prevValue, const String& newValue,
34 const String& attrName, unsigned short attrChange) 34 const String& attrName, unsigned short attrChange)
35 : Event(type, canBubble, cancelable) 35 : Event(type, canBubble, cancelable)
36 , m_relatedNode(relatedNode) 36 , m_relatedNode(relatedNode)
37 , m_prevValue(prevValue) 37 , m_prevValue(prevValue)
38 , m_newValue(newValue) 38 , m_newValue(newValue)
39 , m_attrName(attrName) 39 , m_attrName(attrName)
40 , m_attrChange(attrChange) 40 , m_attrChange(attrChange)
41 { 41 {
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, PassRefPtrWillBeRawPtr<Node> relatedNode, 48 void MutationEvent::initMutationEvent(const AtomicString& type, bool canBubble, bool cancelable, RawPtr<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 (dispatched())
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/MutationEvent.h ('k') | third_party/WebKit/Source/core/events/NodeEventContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698