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

Unified Diff: third_party/WebKit/Source/core/paint/ClipPathClipper.h

Issue 2312713002: Unprefix -webkit-clip-path (Closed)
Patch Set: Baselines Created 4 years, 3 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/core/paint/ClipPathClipper.h
diff --git a/third_party/WebKit/Source/core/paint/ClipPathClipper.h b/third_party/WebKit/Source/core/paint/ClipPathClipper.h
index 37c640102ac41bf3a8d25d5cb76dbf9dc34344c6..c320b33f27a821d54891867b8ef2638ab0837d6b 100644
--- a/third_party/WebKit/Source/core/paint/ClipPathClipper.h
+++ b/third_party/WebKit/Source/core/paint/ClipPathClipper.h
@@ -5,7 +5,6 @@
#ifndef ClipPathClipper_h
#define ClipPathClipper_h
-#include "core/paint/SVGClipPainter.h"
#include "platform/graphics/paint/ClipPathRecorder.h"
#include "wtf/Optional.h"
@@ -17,6 +16,12 @@ class GraphicsContext;
class LayoutSVGResourceClipper;
class LayoutObject;
+enum class ClipperState {
+ NotApplied,
+ AppliedPath,
+ AppliedMask
+};
+
class ClipPathClipper {
DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
public:
@@ -27,10 +32,12 @@ public:
const FloatPoint& origin);
~ClipPathClipper();
+ bool usingMask() const { return m_clipperState == ClipperState::AppliedMask; }
+
private:
LayoutSVGResourceClipper* m_resourceClipper;
Optional<ClipPathRecorder> m_clipPathRecorder;
- SVGClipPainter::ClipperState m_clipperState;
+ ClipperState m_clipperState;
const LayoutObject& m_layoutObject;
GraphicsContext& m_context;
};

Powered by Google App Engine
This is Rietveld 408576698