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

Side by Side Diff: Source/core/events/Event.cpp

Issue 330273002: Oilpan: trace Event.currentTarget. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update XMLHttpRequestProgressEventThrottle comment Created 6 years, 6 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
« no previous file with comments | « Source/core/events/Event.h ('k') | Source/core/xml/XMLHttpRequestProgressEventThrottle.h » ('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) 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 29 matching lines...) Expand all
40 40
41 Event::Event() 41 Event::Event()
42 : m_canBubble(false) 42 : m_canBubble(false)
43 , m_cancelable(false) 43 , m_cancelable(false)
44 , m_propagationStopped(false) 44 , m_propagationStopped(false)
45 , m_immediatePropagationStopped(false) 45 , m_immediatePropagationStopped(false)
46 , m_defaultPrevented(false) 46 , m_defaultPrevented(false)
47 , m_defaultHandled(false) 47 , m_defaultHandled(false)
48 , m_cancelBubble(false) 48 , m_cancelBubble(false)
49 , m_eventPhase(0) 49 , m_eventPhase(0)
50 , m_currentTarget(0) 50 , m_currentTarget(nullptr)
51 , m_createTime(convertSecondsToDOMTimeStamp(currentTime())) 51 , m_createTime(convertSecondsToDOMTimeStamp(currentTime()))
52 { 52 {
53 ScriptWrappable::init(this); 53 ScriptWrappable::init(this);
54 } 54 }
55 55
56 Event::Event(const AtomicString& eventType, bool canBubbleArg, bool cancelableAr g) 56 Event::Event(const AtomicString& eventType, bool canBubbleArg, bool cancelableAr g)
57 : m_type(eventType) 57 : m_type(eventType)
58 , m_canBubble(canBubbleArg) 58 , m_canBubble(canBubbleArg)
59 , m_cancelable(cancelableArg) 59 , m_cancelable(cancelableArg)
60 , m_propagationStopped(false) 60 , m_propagationStopped(false)
61 , m_immediatePropagationStopped(false) 61 , m_immediatePropagationStopped(false)
62 , m_defaultPrevented(false) 62 , m_defaultPrevented(false)
63 , m_defaultHandled(false) 63 , m_defaultHandled(false)
64 , m_cancelBubble(false) 64 , m_cancelBubble(false)
65 , m_eventPhase(0) 65 , m_eventPhase(0)
66 , m_currentTarget(0) 66 , m_currentTarget(nullptr)
67 , m_createTime(convertSecondsToDOMTimeStamp(currentTime())) 67 , m_createTime(convertSecondsToDOMTimeStamp(currentTime()))
68 { 68 {
69 ScriptWrappable::init(this); 69 ScriptWrappable::init(this);
70 } 70 }
71 71
72 Event::Event(const AtomicString& eventType, const EventInit& initializer) 72 Event::Event(const AtomicString& eventType, const EventInit& initializer)
73 : m_type(eventType) 73 : m_type(eventType)
74 , m_canBubble(initializer.bubbles) 74 , m_canBubble(initializer.bubbles)
75 , m_cancelable(initializer.cancelable) 75 , m_cancelable(initializer.cancelable)
76 , m_propagationStopped(false) 76 , m_propagationStopped(false)
77 , m_immediatePropagationStopped(false) 77 , m_immediatePropagationStopped(false)
78 , m_defaultPrevented(false) 78 , m_defaultPrevented(false)
79 , m_defaultHandled(false) 79 , m_defaultHandled(false)
80 , m_cancelBubble(false) 80 , m_cancelBubble(false)
81 , m_eventPhase(0) 81 , m_eventPhase(0)
82 , m_currentTarget(0) 82 , m_currentTarget(nullptr)
83 , m_createTime(convertSecondsToDOMTimeStamp(currentTime())) 83 , m_createTime(convertSecondsToDOMTimeStamp(currentTime()))
84 { 84 {
85 ScriptWrappable::init(this); 85 ScriptWrappable::init(this);
86 } 86 }
87 87
88 Event::~Event() 88 Event::~Event()
89 { 89 {
90 } 90 }
91 91
92 void Event::initEvent(const AtomicString& eventTypeArg, bool canBubbleArg, bool cancelableArg) 92 void Event::initEvent(const AtomicString& eventTypeArg, bool canBubbleArg, bool cancelableArg)
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 Node* node = m_currentTarget->toNode(); 241 Node* node = m_currentTarget->toNode();
242 if (node && node->isSVGElement()) { 242 if (node && node->isSVGElement()) {
243 if (SVGElement* svgElement = toSVGElement(node)->correspondingElement()) 243 if (SVGElement* svgElement = toSVGElement(node)->correspondingElement())
244 return svgElement; 244 return svgElement;
245 } 245 }
246 return m_currentTarget; 246 return m_currentTarget;
247 } 247 }
248 248
249 void Event::trace(Visitor* visitor) 249 void Event::trace(Visitor* visitor)
250 { 250 {
251 visitor->trace(m_currentTarget);
251 visitor->trace(m_target); 252 visitor->trace(m_target);
252 visitor->trace(m_underlyingEvent); 253 visitor->trace(m_underlyingEvent);
253 visitor->trace(m_eventPath); 254 visitor->trace(m_eventPath);
254 } 255 }
255 256
256 } // namespace WebCore 257 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/events/Event.h ('k') | Source/core/xml/XMLHttpRequestProgressEventThrottle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698