| Index: ui/events/event.h
|
| diff --git a/ui/events/event.h b/ui/events/event.h
|
| index dfd867ec4626935e93aa2277ac49099243d13f8c..928a2b98594c92c51411a91f3c35bf9032b8e8ea 100644
|
| --- a/ui/events/event.h
|
| +++ b/ui/events/event.h
|
| @@ -248,13 +248,16 @@ class EVENTS_EXPORT LocatedEvent : public Event {
|
| // TODO(tdresser): Always return floating point location. See
|
| // crbug.com/337824.
|
| gfx::Point location() const { return gfx::ToFlooredPoint(location_); }
|
| - gfx::PointF location_f() const { return location_; }
|
| + const gfx::PointF& location_f() const { return location_; }
|
| void set_root_location(const gfx::PointF& root_location) {
|
| root_location_ = root_location;
|
| }
|
| gfx::Point root_location() const {
|
| return gfx::ToFlooredPoint(root_location_);
|
| }
|
| + const gfx::PointF& root_location_f() const {
|
| + return root_location_;
|
| + }
|
|
|
| // Transform the locations using |inverted_root_transform|.
|
| // This is applied to both |location_| and |root_location_|.
|
|
|