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

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: fixed 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..54a810e857be4617d39b881e65662676b2ee89c0 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.h
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.h
@@ -342,6 +342,7 @@ private:
void drawFocusRing(const Path&);
void addHitRegionInternal(const HitRegionOptions&, ExceptionState&);
+ bool isClipMode() { return m_clipCount; }
Justin Novosad 2014/07/02 15:12:31 should be hasClip()
void validateStateStack();
@@ -362,6 +363,7 @@ private:
Canvas2DContextStorage m_storageMode;
MutableStylePropertyMap m_fetchedFonts;
unsigned m_tryRestoreContextAttemptCount;
+ unsigned m_clipCount;
Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer;
Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer;
Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer;

Powered by Google App Engine
This is Rietveld 408576698