OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2007, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2007, 2008 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2009 Google, Inc. All rights reserved. | 5 * Copyright (C) 2009 Google, Inc. All rights reserved. |
6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 child = child->previousSibling()) { | 197 child = child->previousSibling()) { |
198 if (child->nodeAtFloatPoint(result, localPoint, hitTestAction)) { | 198 if (child->nodeAtFloatPoint(result, localPoint, hitTestAction)) { |
199 const LayoutPoint& localLayoutPoint = roundedLayoutPoint(localPoint); | 199 const LayoutPoint& localLayoutPoint = roundedLayoutPoint(localPoint); |
200 updateHitTestResult(result, localLayoutPoint); | 200 updateHitTestResult(result, localLayoutPoint); |
201 if (result.addNodeToListBasedTestResult( | 201 if (result.addNodeToListBasedTestResult( |
202 child->node(), localLayoutPoint) == StopHitTesting) | 202 child->node(), localLayoutPoint) == StopHitTesting) |
203 return true; | 203 return true; |
204 } | 204 } |
205 } | 205 } |
206 | 206 |
207 // pointer-events: bounding-box makes it possible for containers to be direct
targets. | 207 // pointer-events: bounding-box makes it possible for containers to be direct |
| 208 // targets. |
208 if (style()->pointerEvents() == PE_BOUNDINGBOX) { | 209 if (style()->pointerEvents() == PE_BOUNDINGBOX) { |
209 // Check for a valid bounding box because it will be invalid for empty conta
iners. | 210 // Check for a valid bounding box because it will be invalid for empty |
| 211 // containers. |
210 if (isObjectBoundingBoxValid() && | 212 if (isObjectBoundingBoxValid() && |
211 objectBoundingBox().contains(localPoint)) { | 213 objectBoundingBox().contains(localPoint)) { |
212 const LayoutPoint& localLayoutPoint = roundedLayoutPoint(localPoint); | 214 const LayoutPoint& localLayoutPoint = roundedLayoutPoint(localPoint); |
213 updateHitTestResult(result, localLayoutPoint); | 215 updateHitTestResult(result, localLayoutPoint); |
214 if (result.addNodeToListBasedTestResult(element(), localLayoutPoint) == | 216 if (result.addNodeToListBasedTestResult(element(), localLayoutPoint) == |
215 StopHitTesting) | 217 StopHitTesting) |
216 return true; | 218 return true; |
217 } | 219 } |
218 } | 220 } |
219 // 16.4: "If there are no graphics elements whose relevant graphics content is
under the pointer (i.e., there is no target element), the event is not dispatch
ed." | 221 // 16.4: "If there are no graphics elements whose relevant graphics content is |
| 222 // under the pointer (i.e., there is no target element), the event is not |
| 223 // dispatched." |
220 return false; | 224 return false; |
221 } | 225 } |
222 | 226 |
223 SVGTransformChange LayoutSVGContainer::calculateLocalTransform() { | 227 SVGTransformChange LayoutSVGContainer::calculateLocalTransform() { |
224 return SVGTransformChange::None; | 228 return SVGTransformChange::None; |
225 } | 229 } |
226 | 230 |
227 } // namespace blink | 231 } // namespace blink |
OLD | NEW |