| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SVGClipPainter_h | 5 #ifndef SVGClipPainter_h |
| 6 #define SVGClipPainter_h | 6 #define SVGClipPainter_h |
| 7 | 7 |
| 8 #include "platform/geometry/FloatRect.h" | 8 #include "platform/geometry/FloatRect.h" |
| 9 #include "platform/graphics/paint/DisplayItemClient.h" | 9 #include "platform/graphics/paint/DisplayItemClient.h" |
| 10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 const FloatPoint&, | 30 const FloatPoint&, |
| 31 GraphicsContext&, | 31 GraphicsContext&, |
| 32 ClipperState&); | 32 ClipperState&); |
| 33 void finishEffect(const LayoutObject&, GraphicsContext&, ClipperState&); | 33 void finishEffect(const LayoutObject&, GraphicsContext&, ClipperState&); |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 // Return false if there is a problem drawing the mask. | 36 // Return false if there is a problem drawing the mask. |
| 37 bool drawClipAsMask(GraphicsContext&, | 37 bool drawClipAsMask(GraphicsContext&, |
| 38 const LayoutObject&, | 38 const LayoutObject&, |
| 39 const FloatRect& targetBoundingBox, | 39 const FloatRect& targetBoundingBox, |
| 40 const FloatRect& targetPaintInvalidationRect, | 40 const FloatRect& targetVisualRect, |
| 41 const AffineTransform&, | 41 const AffineTransform&, |
| 42 const FloatPoint&); | 42 const FloatPoint&); |
| 43 | 43 |
| 44 LayoutSVGResourceClipper& m_clip; | 44 LayoutSVGResourceClipper& m_clip; |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 } // namespace blink | 47 } // namespace blink |
| 48 | 48 |
| 49 #endif // SVGClipPainter_h | 49 #endif // SVGClipPainter_h |
| OLD | NEW |