OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ClipPathClipper_h |
| 6 #define ClipPathClipper_h |
| 7 |
| 8 #include "core/paint/SVGClipPainter.h" |
| 9 #include "platform/graphics/paint/ClipPathRecorder.h" |
| 10 #include "wtf/Optional.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class FloatPoint; |
| 15 class FloatRect; |
| 16 class GraphicsContext; |
| 17 class LayoutSVGResourceClipper; |
| 18 class LayoutObject; |
| 19 |
| 20 class ClipPathClipper { |
| 21 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| 22 public: |
| 23 ClipPathClipper( |
| 24 GraphicsContext&, |
| 25 const LayoutObject&, |
| 26 const FloatRect& referenceBox, |
| 27 const FloatRect& visualOverflowRect, |
| 28 const FloatPoint& origin); |
| 29 ~ClipPathClipper(); |
| 30 |
| 31 private: |
| 32 LayoutSVGResourceClipper* m_resourceClipper; |
| 33 Optional<ClipPathRecorder> m_clipPathRecorder; |
| 34 SVGClipPainter::ClipperState m_clipperState; |
| 35 const LayoutObject& m_layoutObject; |
| 36 GraphicsContext& m_context; |
| 37 }; |
| 38 |
| 39 } // namespace blink |
| 40 |
| 41 #endif // ClipPathClipper_h |
OLD | NEW |