OLD | NEW |
1 /** | 1 /** |
2 * Copyright (C) 2007 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007 Rob Buis <buis@kde.org> |
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 if (hitRules.canHitBoundingBox | 275 if (hitRules.canHitBoundingBox |
276 || (hitRules.canHitStroke && (renderer().style()->svgStyle().hasStro
ke() || !hitRules.requireStroke)) | 276 || (hitRules.canHitStroke && (renderer().style()->svgStyle().hasStro
ke() || !hitRules.requireStroke)) |
277 || (hitRules.canHitFill && (renderer().style()->svgStyle().hasFill()
|| !hitRules.requireFill))) { | 277 || (hitRules.canHitFill && (renderer().style()->svgStyle().hasFill()
|| !hitRules.requireFill))) { |
278 FloatPointWillBeLayoutPoint boxOrigin(x(), y()); | 278 FloatPointWillBeLayoutPoint boxOrigin(x(), y()); |
279 boxOrigin.moveBy(accumulatedOffset); | 279 boxOrigin.moveBy(accumulatedOffset); |
280 FloatRectWillBeLayoutRect rect(boxOrigin, size()); | 280 FloatRectWillBeLayoutRect rect(boxOrigin, size()); |
281 // FIXME: both calls to rawValue() below is temporary and should be
removed once the transition | 281 // FIXME: both calls to rawValue() below is temporary and should be
removed once the transition |
282 // to LayoutUnit-based types is complete (crbug.com/321237) | 282 // to LayoutUnit-based types is complete (crbug.com/321237) |
283 if (locationInContainer.intersects(rect.rawValue())) { | 283 if (locationInContainer.intersects(rect.rawValue())) { |
284 renderer().updateHitTestResult(result, locationInContainer.point
() - toLayoutSize(accumulatedOffset)); | 284 renderer().updateHitTestResult(result, locationInContainer.point
() - toLayoutSize(accumulatedOffset)); |
285 if (!result.addNodeToRectBasedTestResult(renderer().node(), requ
est, locationInContainer, rect.rawValue())) | 285 if (!result.addNodeToListBasedTestResult(renderer().node(), requ
est, locationInContainer, rect.rawValue())) |
286 return true; | 286 return true; |
287 } | 287 } |
288 } | 288 } |
289 } | 289 } |
290 return false; | 290 return false; |
291 } | 291 } |
292 | 292 |
293 } // namespace blink | 293 } // namespace blink |
OLD | NEW |