Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: Source/core/rendering/svg/SVGInlineTextBox.cpp

Issue 869813003: Implement elementsFromPoint (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix typeo Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 if (hitRules.canHitBoundingBox 280 if (hitRules.canHitBoundingBox
281 || (hitRules.canHitStroke && (renderer().style()->svgStyle().hasStro ke() || !hitRules.requireStroke)) 281 || (hitRules.canHitStroke && (renderer().style()->svgStyle().hasStro ke() || !hitRules.requireStroke))
282 || (hitRules.canHitFill && (renderer().style()->svgStyle().hasFill() || !hitRules.requireFill))) { 282 || (hitRules.canHitFill && (renderer().style()->svgStyle().hasFill() || !hitRules.requireFill))) {
283 FloatPointWillBeLayoutPoint boxOrigin(x(), y()); 283 FloatPointWillBeLayoutPoint boxOrigin(x(), y());
284 boxOrigin.moveBy(accumulatedOffset); 284 boxOrigin.moveBy(accumulatedOffset);
285 FloatRectWillBeLayoutRect rect(boxOrigin, size()); 285 FloatRectWillBeLayoutRect rect(boxOrigin, size());
286 // FIXME: both calls to rawValue() below is temporary and should be removed once the transition 286 // FIXME: both calls to rawValue() below is temporary and should be removed once the transition
287 // to LayoutUnit-based types is complete (crbug.com/321237) 287 // to LayoutUnit-based types is complete (crbug.com/321237)
288 if (locationInContainer.intersects(rect.rawValue())) { 288 if (locationInContainer.intersects(rect.rawValue())) {
289 renderer().updateHitTestResult(result, locationInContainer.point () - toLayoutSize(accumulatedOffset)); 289 renderer().updateHitTestResult(result, locationInContainer.point () - toLayoutSize(accumulatedOffset));
290 if (!result.addNodeToRectBasedTestResult(renderer().node(), requ est, locationInContainer, rect.rawValue())) 290 if (!result.addNodeToListBasedTestResult(renderer().node(), requ est, locationInContainer, rect.rawValue()))
291 return true; 291 return true;
292 } 292 }
293 } 293 }
294 } 294 }
295 return false; 295 return false;
296 } 296 }
297 297
298 } // namespace blink 298 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698