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 const LayoutPoint& localLayoutPoint = LayoutPoint(localPoint); | 197 const LayoutPoint& localLayoutPoint = LayoutPoint(localPoint); |
198 updateHitTestResult(result, localLayoutPoint); | 198 updateHitTestResult(result, localLayoutPoint); |
199 if (result.addNodeToListBasedTestResult( | 199 if (result.addNodeToListBasedTestResult( |
200 child->node(), localLayoutPoint) == StopHitTesting) | 200 child->node(), localLayoutPoint) == StopHitTesting) |
201 return true; | 201 return true; |
202 } | 202 } |
203 } | 203 } |
204 | 204 |
205 // pointer-events: bounding-box makes it possible for containers to be direct | 205 // pointer-events: bounding-box makes it possible for containers to be direct |
206 // targets. | 206 // targets. |
207 if (style()->pointerEvents() == PE_BOUNDINGBOX) { | 207 if (style()->pointerEvents() == EPointerEvents::PE_BOUNDINGBOX) { |
208 // Check for a valid bounding box because it will be invalid for empty | 208 // Check for a valid bounding box because it will be invalid for empty |
209 // containers. | 209 // containers. |
210 if (isObjectBoundingBoxValid() && | 210 if (isObjectBoundingBoxValid() && |
211 objectBoundingBox().contains(localPoint)) { | 211 objectBoundingBox().contains(localPoint)) { |
212 const LayoutPoint& localLayoutPoint = LayoutPoint(localPoint); | 212 const LayoutPoint& localLayoutPoint = LayoutPoint(localPoint); |
213 updateHitTestResult(result, localLayoutPoint); | 213 updateHitTestResult(result, localLayoutPoint); |
214 if (result.addNodeToListBasedTestResult(element(), localLayoutPoint) == | 214 if (result.addNodeToListBasedTestResult(element(), localLayoutPoint) == |
215 StopHitTesting) | 215 StopHitTesting) |
216 return true; | 216 return true; |
217 } | 217 } |
218 } | 218 } |
219 // 16.4: "If there are no graphics elements whose relevant graphics content is | 219 // 16.4: "If there are no graphics elements whose relevant graphics content is |
220 // under the pointer (i.e., there is no target element), the event is not | 220 // under the pointer (i.e., there is no target element), the event is not |
221 // dispatched." | 221 // dispatched." |
222 return false; | 222 return false; |
223 } | 223 } |
224 | 224 |
225 SVGTransformChange LayoutSVGContainer::calculateLocalTransform() { | 225 SVGTransformChange LayoutSVGContainer::calculateLocalTransform() { |
226 return SVGTransformChange::None; | 226 return SVGTransformChange::None; |
227 } | 227 } |
228 | 228 |
229 } // namespace blink | 229 } // namespace blink |
OLD | NEW |