OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) | 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) |
3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) | 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) |
4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
5 * Copyright (C) 2003, 2005, 2006, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2008 Apple Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 10 matching lines...) Expand all Loading... |
21 */ | 21 */ |
22 | 22 |
23 #include "core/events/MouseRelatedEvent.h" | 23 #include "core/events/MouseRelatedEvent.h" |
24 | 24 |
25 #include "core/dom/Document.h" | 25 #include "core/dom/Document.h" |
26 #include "core/frame/LocalDOMWindow.h" | 26 #include "core/frame/LocalDOMWindow.h" |
27 #include "core/frame/FrameView.h" | 27 #include "core/frame/FrameView.h" |
28 #include "core/frame/LocalFrame.h" | 28 #include "core/frame/LocalFrame.h" |
29 #include "core/layout/LayoutObject.h" | 29 #include "core/layout/LayoutObject.h" |
30 #include "core/paint/PaintLayer.h" | 30 #include "core/paint/PaintLayer.h" |
| 31 #include "core/svg/SVGElement.h" |
31 | 32 |
32 namespace blink { | 33 namespace blink { |
33 | 34 |
34 MouseRelatedEvent::MouseRelatedEvent() | 35 MouseRelatedEvent::MouseRelatedEvent() |
35 : m_positionType(PositionType::Position), | 36 : m_positionType(PositionType::Position), |
36 m_hasCachedRelativePosition(false) {} | 37 m_hasCachedRelativePosition(false) {} |
37 | 38 |
38 static LayoutSize contentsScrollOffset(AbstractView* abstractView) { | 39 static LayoutSize contentsScrollOffset(AbstractView* abstractView) { |
39 if (!abstractView || !abstractView->isLocalDOMWindow()) | 40 if (!abstractView || !abstractView->isLocalDOMWindow()) |
40 return LayoutSize(); | 41 return LayoutSize(); |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 // See Microsoft documentation and | 259 // See Microsoft documentation and |
259 // <http://www.quirksmode.org/dom/w3c_events.html>. | 260 // <http://www.quirksmode.org/dom/w3c_events.html>. |
260 return m_clientLocation.y().toInt(); | 261 return m_clientLocation.y().toInt(); |
261 } | 262 } |
262 | 263 |
263 DEFINE_TRACE(MouseRelatedEvent) { | 264 DEFINE_TRACE(MouseRelatedEvent) { |
264 UIEventWithKeyState::trace(visitor); | 265 UIEventWithKeyState::trace(visitor); |
265 } | 266 } |
266 | 267 |
267 } // namespace blink | 268 } // namespace blink |
OLD | NEW |