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

Unified Diff: Source/core/html/canvas/CanvasRenderingContext2D.h

Issue 352793006: context.addHitRegion() is not working when using transform operation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: state stack Created 6 years, 6 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/html/canvas/CanvasRenderingContext2D.h
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.h b/Source/core/html/canvas/CanvasRenderingContext2D.h
index dac937e6b776ba8c61207d1749527bd24f78392b..6dae7cefd9940f1d42bcacadd581feac0456b9f1 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.h
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.h
@@ -283,6 +283,8 @@ private:
String m_unparsedFont;
Font m_font;
bool m_realizedFont;
+
+ bool m_hasClip;
};
CanvasRenderingContext2D(HTMLCanvasElement*, const Canvas2DContextAttributes* attrs, bool usesCSSCompatibilityParseMode);
@@ -342,6 +344,7 @@ private:
void drawFocusRing(const Path&);
void addHitRegionInternal(const HitRegionOptions&, ExceptionState&);
+ bool hasClip() { return state().m_hasClip; }
void validateStateStack();

Powered by Google App Engine
This is Rietveld 408576698