OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * | 9 * |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 static Node* hoveredNodeForEvent(LocalFrame* frame, const PlatformMouseEvent& ev
ent, bool ignorePointerEventsNone) | 170 static Node* hoveredNodeForEvent(LocalFrame* frame, const PlatformMouseEvent& ev
ent, bool ignorePointerEventsNone) |
171 { | 171 { |
172 return hoveredNodeForPoint(frame, event.position(), ignorePointerEventsNone)
; | 172 return hoveredNodeForPoint(frame, event.position(), ignorePointerEventsNone)
; |
173 } | 173 } |
174 | 174 |
175 static Node* hoveredNodeForEvent(LocalFrame* frame, const PlatformTouchEvent& ev
ent, bool ignorePointerEventsNone) | 175 static Node* hoveredNodeForEvent(LocalFrame* frame, const PlatformTouchEvent& ev
ent, bool ignorePointerEventsNone) |
176 { | 176 { |
177 const Vector<PlatformTouchPoint>& points = event.touchPoints(); | 177 const Vector<PlatformTouchPoint>& points = event.touchPoints(); |
178 if (!points.size()) | 178 if (!points.size()) |
179 return 0; | 179 return 0; |
180 return hoveredNodeForPoint(frame, points[0].pos(), ignorePointerEventsNone); | 180 return hoveredNodeForPoint(frame, roundedIntPoint(points[0].pos()), ignorePo
interEventsNone); |
181 } | 181 } |
182 | 182 |
183 class RevalidateStyleAttributeTask { | 183 class RevalidateStyleAttributeTask { |
184 WTF_MAKE_FAST_ALLOCATED; | 184 WTF_MAKE_FAST_ALLOCATED; |
185 public: | 185 public: |
186 RevalidateStyleAttributeTask(InspectorDOMAgent*); | 186 RevalidateStyleAttributeTask(InspectorDOMAgent*); |
187 void scheduleFor(Element*); | 187 void scheduleFor(Element*); |
188 void reset() { m_timer.stop(); } | 188 void reset() { m_timer.stop(); } |
189 void onTimer(Timer<RevalidateStyleAttributeTask>*); | 189 void onTimer(Timer<RevalidateStyleAttributeTask>*); |
190 | 190 |
(...skipping 1901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2092 if (!m_documentNodeToIdMap.contains(m_document)) { | 2092 if (!m_documentNodeToIdMap.contains(m_document)) { |
2093 RefPtr<TypeBuilder::DOM::Node> root; | 2093 RefPtr<TypeBuilder::DOM::Node> root; |
2094 getDocument(errorString, root); | 2094 getDocument(errorString, root); |
2095 return errorString->isEmpty(); | 2095 return errorString->isEmpty(); |
2096 } | 2096 } |
2097 return true; | 2097 return true; |
2098 } | 2098 } |
2099 | 2099 |
2100 } // namespace WebCore | 2100 } // namespace WebCore |
2101 | 2101 |
OLD | NEW |