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

Unified Diff: Source/core/events/GestureEvent.h

Issue 26429003: Cleanup: Add toDeviceMotionEvent and toDeviceOrientationEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated to ToT Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/events/WheelEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/GestureEvent.h
diff --git a/Source/core/events/GestureEvent.h b/Source/core/events/GestureEvent.h
index f7c2d49e26a873de257d77b9b3f7df4cba408dfa..03ca12705ea8054507495aa9d683f61442451880 100644
--- a/Source/core/events/GestureEvent.h
+++ b/Source/core/events/GestureEvent.h
@@ -73,7 +73,7 @@ private:
inline GestureEvent* toGestureEvent(Event* event)
{
- ASSERT(event && event->isGestureEvent());
+ ASSERT_WITH_SECURITY_IMPLICATION(!event || event->isGestureEvent());
return static_cast<GestureEvent*>(event);
}
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/events/WheelEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698