Index: Source/core/rendering/svg/RenderSVGRoot.h |
diff --git a/Source/core/rendering/svg/RenderSVGRoot.h b/Source/core/rendering/svg/RenderSVGRoot.h |
index d5490440eba8e9bc88751f746555d47185206d5d..4c2665d120f832228e19ad5cb0e4b1488caad205 100644 |
--- a/Source/core/rendering/svg/RenderSVGRoot.h |
+++ b/Source/core/rendering/svg/RenderSVGRoot.h |
@@ -57,6 +57,12 @@ public: |
virtual bool hasRelativeIntrinsicLogicalWidth() const OVERRIDE; |
virtual bool hasRelativeLogicalHeight() const OVERRIDE; |
+ virtual bool visibleToHitTestRequest(const HitTestRequest& request) const |
+ { |
+ if (request.touchAction()) |
+ return style()->visibility() == VISIBLE && style()->pointerEvents() != PE_NONE && !isInert(); |
+ return RenderObject::visibleToHitTestRequest(request); |
+ } |
// localToBorderBoxTransform maps local SVG viewport coordinates to local CSS box coordinates. |
const AffineTransform& localToBorderBoxTransform() const { return m_localToBorderBoxTransform; } |