| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Computer, Inc. | 2 * Copyright (C) 2006 Apple Computer, Inc. |
| 3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> | 3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> |
| 4 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> | 4 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> |
| 5 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 5 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 6 * Copyright (C) 2008 Rob Buis <buis@kde.org> | 6 * Copyright (C) 2008 Rob Buis <buis@kde.org> |
| 7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
| 8 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. | 8 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. |
| 9 * Copyright (C) 2012 Google Inc. | 9 * Copyright (C) 2012 Google Inc. |
| 10 * | 10 * |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 return false; | 304 return false; |
| 305 | 305 |
| 306 HitTestLocation hitTestLocation(localPoint); | 306 HitTestLocation hitTestLocation(localPoint); |
| 307 if (LayoutBlock::nodeAtPoint(result, hitTestLocation, LayoutPoint(), | 307 if (LayoutBlock::nodeAtPoint(result, hitTestLocation, LayoutPoint(), |
| 308 hitTestAction)) | 308 hitTestAction)) |
| 309 return true; | 309 return true; |
| 310 | 310 |
| 311 // Consider the bounding box if requested. | 311 // Consider the bounding box if requested. |
| 312 if (hitRules.canHitBoundingBox && | 312 if (hitRules.canHitBoundingBox && |
| 313 objectBoundingBox().contains(localPoint)) { | 313 objectBoundingBox().contains(localPoint)) { |
| 314 const LayoutPoint& localLayoutPoint = roundedLayoutPoint(localPoint); | 314 const LayoutPoint& localLayoutPoint = LayoutPoint(localPoint); |
| 315 updateHitTestResult(result, localLayoutPoint); | 315 updateHitTestResult(result, localLayoutPoint); |
| 316 if (result.addNodeToListBasedTestResult(node(), localLayoutPoint) == | 316 if (result.addNodeToListBasedTestResult(node(), localLayoutPoint) == |
| 317 StopHitTesting) | 317 StopHitTesting) |
| 318 return true; | 318 return true; |
| 319 } | 319 } |
| 320 } | 320 } |
| 321 } | 321 } |
| 322 | 322 |
| 323 return false; | 323 return false; |
| 324 } | 324 } |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 | 399 |
| 400 void LayoutSVGText::invalidateTreeIfNeeded( | 400 void LayoutSVGText::invalidateTreeIfNeeded( |
| 401 const PaintInvalidationState& paintInvalidationState) { | 401 const PaintInvalidationState& paintInvalidationState) { |
| 402 // TODO(wangxianzhu): Verify if the inherited | 402 // TODO(wangxianzhu): Verify if the inherited |
| 403 // LayoutBoxModelObject::invalidateTreeIfNeeded() | 403 // LayoutBoxModelObject::invalidateTreeIfNeeded() |
| 404 // is applicable here. If yes, remove this overriding method. | 404 // is applicable here. If yes, remove this overriding method. |
| 405 LayoutObject::invalidateTreeIfNeeded(paintInvalidationState); | 405 LayoutObject::invalidateTreeIfNeeded(paintInvalidationState); |
| 406 } | 406 } |
| 407 | 407 |
| 408 } // namespace blink | 408 } // namespace blink |
| OLD | NEW |