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

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

Issue 745383007: Fix an issue where hit detection could fail on rect and ellipse shapes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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 11dbf4f86567537cc04e60e12d22ca008fa89547..764e239c76231a4bad87419555b9540e74bfbd51 100644
--- a/Source/core/rendering/svg/RenderSVGShape.h
+++ b/Source/core/rendering/svg/RenderSVGShape.h
@@ -83,6 +83,8 @@ protected:
virtual void updateShapeFromElement();
virtual bool shapeDependentStrokeContains(const FloatPoint&);
virtual bool shapeDependentFillContains(const FloatPoint&, const WindRule) const;
+ // Is the stroke "smooth"; that is, can we use simple geometry for hit testing
Erik Dahlström (inactive) 2014/12/03 15:16:35 That this has to be explained here indicates that
fs 2014/12/03 15:56:06 Maybe 'hasContinousStroke' instead? (and make it c
+ // or should we fall back to letting Skia handle the hit testing?
bool hasSmoothStroke() const;
// Give RenderSVGPath a hook for updating markers in updateShapeFromElement.

Powered by Google App Engine
This is Rietveld 408576698