| 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;
|
| };
|
|
|