Chromium Code Reviews| Index: Source/core/rendering/svg/SVGInlineTextBox.cpp |
| diff --git a/Source/core/rendering/svg/SVGInlineTextBox.cpp b/Source/core/rendering/svg/SVGInlineTextBox.cpp |
| index 350fc637211097b89c9aab6195e081ac29c80d98..96ae895ce0704f6bd1a988d72ed8016aca368665 100644 |
| --- a/Source/core/rendering/svg/SVGInlineTextBox.cpp |
| +++ b/Source/core/rendering/svg/SVGInlineTextBox.cpp |
| @@ -738,7 +738,8 @@ bool SVGInlineTextBox::nodeAtPoint(const HitTestRequest& request, HitTestResult& |
| PointerEventsHitRules hitRules(PointerEventsHitRules::SVG_TEXT_HITTESTING, request, renderer()->style()->pointerEvents()); |
| bool isVisible = renderer()->style()->visibility() == VISIBLE; |
| if (isVisible || !hitRules.requireVisible) { |
| - if ((hitRules.canHitStroke && (renderer()->style()->svgStyle()->hasStroke() || !hitRules.requireStroke)) |
| + if (hitRules.canHitBoundingBox |
|
pdr.
2013/11/01 03:42:00
I think the 1.2 spec requires that hit testing wor
Erik Dahlström (inactive)
2013/11/29 16:30:48
PointerEventsHitRules.requireVisible is always fal
|
| + || (hitRules.canHitStroke && (renderer()->style()->svgStyle()->hasStroke() || !hitRules.requireStroke)) |
| || (hitRules.canHitFill && (renderer()->style()->svgStyle()->hasFill() || !hitRules.requireFill))) { |
| FloatPoint boxOrigin(x(), y()); |
| boxOrigin.moveBy(accumulatedOffset); |