OLD | NEW |
1 /** | 1 /** |
2 * Copyright (C) 2007 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007 Rob Buis <buis@kde.org> |
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2009 Google, Inc. All rights reserved. | 5 * Copyright (C) 2009 Google, Inc. All rights reserved. |
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
7 * Copyright (C) 2012 Zoltan Herczeg <zherczeg@webkit.org>. | 7 * Copyright (C) 2012 Zoltan Herczeg <zherczeg@webkit.org>. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 15 matching lines...) Expand all Loading... |
26 #define SVGPaintContext_h | 26 #define SVGPaintContext_h |
27 | 27 |
28 #include "core/layout/svg/LayoutSVGResourceClipper.h" | 28 #include "core/layout/svg/LayoutSVGResourceClipper.h" |
29 #include "core/layout/svg/LayoutSVGResourcePaintServer.h" | 29 #include "core/layout/svg/LayoutSVGResourcePaintServer.h" |
30 #include "core/paint/PaintInfo.h" | 30 #include "core/paint/PaintInfo.h" |
31 #include "core/paint/SVGClipPainter.h" | 31 #include "core/paint/SVGClipPainter.h" |
32 #include "core/paint/SVGFilterPainter.h" | 32 #include "core/paint/SVGFilterPainter.h" |
33 #include "platform/graphics/paint/ClipPathRecorder.h" | 33 #include "platform/graphics/paint/ClipPathRecorder.h" |
34 #include "platform/graphics/paint/CompositingRecorder.h" | 34 #include "platform/graphics/paint/CompositingRecorder.h" |
35 #include "platform/transforms/AffineTransform.h" | 35 #include "platform/transforms/AffineTransform.h" |
36 #include <memory> | |
37 | 36 |
38 namespace blink { | 37 namespace blink { |
39 | 38 |
40 class LayoutObject; | 39 class LayoutObject; |
41 class LayoutSVGResourceFilter; | 40 class LayoutSVGResourceFilter; |
42 class LayoutSVGResourceMasker; | 41 class LayoutSVGResourceMasker; |
43 class SVGResources; | 42 class SVGResources; |
44 | 43 |
45 class SVGPaintContext { | 44 class SVGPaintContext { |
46 STACK_ALLOCATED(); | 45 STACK_ALLOCATED(); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // Return true if no masking is necessary or if the mask is successfully app
lied. | 78 // Return true if no masking is necessary or if the mask is successfully app
lied. |
80 bool applyMaskIfNecessary(SVGResources*); | 79 bool applyMaskIfNecessary(SVGResources*); |
81 | 80 |
82 // Return true if no filtering is necessary or if the filter is successfully
applied. | 81 // Return true if no filtering is necessary or if the filter is successfully
applied. |
83 bool applyFilterIfNecessary(SVGResources*); | 82 bool applyFilterIfNecessary(SVGResources*); |
84 | 83 |
85 bool isIsolationInstalled() const; | 84 bool isIsolationInstalled() const; |
86 | 85 |
87 const LayoutObject& m_object; | 86 const LayoutObject& m_object; |
88 PaintInfo m_paintInfo; | 87 PaintInfo m_paintInfo; |
89 std::unique_ptr<PaintInfo> m_filterPaintInfo; | 88 OwnPtr<PaintInfo> m_filterPaintInfo; |
90 LayoutSVGResourceFilter* m_filter; | 89 LayoutSVGResourceFilter* m_filter; |
91 LayoutSVGResourceClipper* m_clipper; | 90 LayoutSVGResourceClipper* m_clipper; |
92 SVGClipPainter::ClipperState m_clipperState; | 91 SVGClipPainter::ClipperState m_clipperState; |
93 LayoutSVGResourceMasker* m_masker; | 92 LayoutSVGResourceMasker* m_masker; |
94 std::unique_ptr<CompositingRecorder> m_compositingRecorder; | 93 OwnPtr<CompositingRecorder> m_compositingRecorder; |
95 std::unique_ptr<ClipPathRecorder> m_clipPathRecorder; | 94 OwnPtr<ClipPathRecorder> m_clipPathRecorder; |
96 std::unique_ptr<SVGFilterRecordingContext> m_filterRecordingContext; | 95 OwnPtr<SVGFilterRecordingContext> m_filterRecordingContext; |
97 #if ENABLE(ASSERT) | 96 #if ENABLE(ASSERT) |
98 bool m_applyClipMaskAndFilterIfNecessaryCalled; | 97 bool m_applyClipMaskAndFilterIfNecessaryCalled; |
99 #endif | 98 #endif |
100 }; | 99 }; |
101 | 100 |
102 } // namespace blink | 101 } // namespace blink |
103 | 102 |
104 #endif // SVGPaintContext_h | 103 #endif // SVGPaintContext_h |
OLD | NEW |