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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h

Issue 1630683002: Canvas2d: addHitRegion() should take clipping region into account. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h
index 25260c5d73d32e85a410ec018561abfd45794219..b5744182d311ab5387633ae9483f68c091628d8b 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h
@@ -74,6 +74,7 @@ public:
bool hasClip() const { return m_hasClip; }
bool hasComplexClip() const { return m_hasComplexClip; }
void playbackClips(SkCanvas* canvas) const { m_clipList.playback(canvas); }
+ SkPath totalClipPath(const SkPath& path) const { return m_clipList.totalClipPath(path); }
Stephen White 2016/01/25 15:37:35 Naming nit: I think this function needs a verb, si
zino 2016/01/27 17:10:30 Done.
void setFont(const Font&, CSSFontSelector*);
const Font& font() const;

Powered by Google App Engine
This is Rietveld 408576698