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

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

Issue 2270293002: Replace ASSERT*() with DCHECK*() in core/events/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: isUnreachableNode -> checkReachableNode Created 4 years, 4 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 } 306 }
307 307
308 if (Node* node = m_currentTarget->toNode()) { 308 if (Node* node = m_currentTarget->toNode()) {
309 DCHECK(m_eventPath); 309 DCHECK(m_eventPath);
310 size_t eventPathSize = m_eventPath->size(); 310 size_t eventPathSize = m_eventPath->size();
311 for (size_t i = 0; i < eventPathSize; ++i) { 311 for (size_t i = 0; i < eventPathSize; ++i) {
312 if (node == (*m_eventPath)[i].node()) { 312 if (node == (*m_eventPath)[i].node()) {
313 return (*m_eventPath)[i].treeScopeEventContext().ensureEventPath (*m_eventPath); 313 return (*m_eventPath)[i].treeScopeEventContext().ensureEventPath (*m_eventPath);
314 } 314 }
315 } 315 }
316 ASSERT_NOT_REACHED(); 316 NOTREACHED();
317 } 317 }
318 318
319 // Returns [window] for events that are directly dispatched to the window ob ject; 319 // Returns [window] for events that are directly dispatched to the window ob ject;
320 // e.g., window.load, pageshow, etc. 320 // e.g., window.load, pageshow, etc.
321 if (LocalDOMWindow* window = m_currentTarget->toLocalDOMWindow()) 321 if (LocalDOMWindow* window = m_currentTarget->toLocalDOMWindow())
322 return HeapVector<Member<EventTarget>>(1, window); 322 return HeapVector<Member<EventTarget>>(1, window);
323 323
324 return HeapVector<Member<EventTarget>>(); 324 return HeapVector<Member<EventTarget>>();
325 } 325 }
326 326
(...skipping 24 matching lines...) Expand all
351 351
352 DEFINE_TRACE(Event) 352 DEFINE_TRACE(Event)
353 { 353 {
354 visitor->trace(m_currentTarget); 354 visitor->trace(m_currentTarget);
355 visitor->trace(m_target); 355 visitor->trace(m_target);
356 visitor->trace(m_underlyingEvent); 356 visitor->trace(m_underlyingEvent);
357 visitor->trace(m_eventPath); 357 visitor->trace(m_eventPath);
358 } 358 }
359 359
360 } // namespace blink 360 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/Event.h ('k') | third_party/WebKit/Source/core/events/EventDispatchMediator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698