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