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

Unified Diff: Source/core/rendering/svg/RenderSVGShape.h

Issue 810343003: Fix pointer-events:all when stroke="none" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add back m_strokeBoundingBox 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/svg/RenderSVGShape.h
diff --git a/Source/core/rendering/svg/RenderSVGShape.h b/Source/core/rendering/svg/RenderSVGShape.h
index 3fa24bf9487c95bb67f97e13d2f327c2b2e2106e..2a6c12cfe141e43c6ed6895dfdee019c36baabc1 100644
--- a/Source/core/rendering/svg/RenderSVGShape.h
+++ b/Source/core/rendering/svg/RenderSVGShape.h
@@ -89,6 +89,7 @@ protected:
FloatRect m_fillBoundingBox;
FloatRect m_strokeBoundingBox;
+ FloatRect m_hitTestStrokeBoundingBox;
private:
// Hit-detection separated for the fill and the stroke
@@ -107,8 +108,9 @@ private:
virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const FloatPoint& pointInParent, HitTestAction) override final;
virtual FloatRect strokeBoundingBox() const override final { return m_strokeBoundingBox; }
+ FloatRect hitTestStrokeBoundingBox() const { return m_hitTestStrokeBoundingBox; }
FloatRect calculateObjectBoundingBox() const;
- FloatRect calculateStrokeBoundingBox() const;
+ FloatRect calculateHitTestStrokeBoundingBox() const;
void updatePaintInvalidationBoundingBox();
void updateLocalTransform();

Powered by Google App Engine
This is Rietveld 408576698