Index: ui/events/event.cc |
diff --git a/ui/events/event.cc b/ui/events/event.cc |
index 0e7d0f19730d7b324f22dd1c3a7a73c1c1e61d89..cb771b7ea4554af9d632df118d3716e61c721d44 100644 |
--- a/ui/events/event.cc |
+++ b/ui/events/event.cc |
@@ -918,7 +918,12 @@ std::string KeyEvent::GetCodeString() const { |
// ScrollEvent |
ScrollEvent::ScrollEvent(const base::NativeEvent& native_event) |
- : MouseEvent(native_event) { |
+ : MouseEvent(native_event), |
+ x_offset_(0.0f), |
+ y_offset_(0.0f), |
+ x_offset_ordinal_(0.0f), |
+ y_offset_ordinal_(0.0f), |
+ finger_count_(0) { |
if (type() == ET_SCROLL) { |
GetScrollOffsets(native_event, |
&x_offset_, &y_offset_, |