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

Unified Diff: Source/core/layout/svg/LayoutSVGShape.h

Issue 1048043002: Fix pointer-events:all when stroke="none" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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/layout/svg/LayoutSVGShape.h
diff --git a/Source/core/layout/svg/LayoutSVGShape.h b/Source/core/layout/svg/LayoutSVGShape.h
index 6c4a6d6f13bc302d84d20ad1edf42da8870b8c82..2be5b019bf700480dd700fb0d26c33cd26bdcd3b 100644
--- a/Source/core/layout/svg/LayoutSVGShape.h
+++ b/Source/core/layout/svg/LayoutSVGShape.h
@@ -86,6 +86,11 @@ protected:
void createPath();
virtual void updateShapeFromElement();
+ // Calculates an inclusive bounding box of this shape as if this shape has
+ // a stroke. If this shape has a stroke, then m_strokeBoundingBox is returned;
+ // otherwise, estimates a bounding box (not necessarily tight) that would
+ // include this shape's stroke bounding box if it had a stroke.
+ virtual FloatRect hitTestStrokeBoundingBox() const;
virtual bool shapeDependentStrokeContains(const FloatPoint&);
virtual bool shapeDependentFillContains(const FloatPoint&, const WindRule) const;

Powered by Google App Engine
This is Rietveld 408576698