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

Unified Diff: Source/core/events/WheelEvent.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/events/GestureEvent.h ('k') | Source/core/events/WheelEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/WheelEvent.h
diff --git a/Source/core/events/WheelEvent.h b/Source/core/events/WheelEvent.h
index 3e99335687540ef4ba044d900f630550f390580f..27c89677931df0b3b3469139c8f2a00a4c7be806 100644
--- a/Source/core/events/WheelEvent.h
+++ b/Source/core/events/WheelEvent.h
@@ -114,7 +114,7 @@ private:
inline WheelEvent* toWheelEvent(Event* event)
{
- ASSERT(event && event->isWheelEvent());
+ ASSERT_WITH_SECURITY_IMPLICATION(!event || event->isWheelEvent());
return static_cast<WheelEvent*>(event);
}
« no previous file with comments | « Source/core/events/GestureEvent.h ('k') | Source/core/events/WheelEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698