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

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

Issue 26434002: Cleanup: Add more conversion helpers for usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated to ToT. Patch for landing. 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
Index: Source/core/events/GestureEvent.h
diff --git a/Source/core/events/GestureEvent.h b/Source/core/events/GestureEvent.h
index 8a6f1d056cbacf76cfae03b2075318ba83ff3f2a..566c156227cc01bfb91915b0a1f9f811dea77e8b 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);
}

Powered by Google App Engine
This is Rietveld 408576698