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 |
11 * License as published by the Free Software Foundation; either | 11 * License as published by the Free Software Foundation; either |
12 * version 2 of the License, or (at your option) any later version. | 12 * version 2 of the License, or (at your option) any later version. |
13 * | 13 * |
14 * This library is distributed in the hope that it will be useful, | 14 * This library is distributed in the hope that it will be useful, |
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17 * Library General Public License for more details. | 17 * Library General Public License for more details. |
18 * | 18 * |
19 * You should have received a copy of the GNU Library General Public License | 19 * You should have received a copy of the GNU Library General Public License |
20 * along with this library; see the file COPYING.LIB. If not, write to | 20 * along with this library; see the file COPYING.LIB. If not, write to |
21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
22 * Boston, MA 02110-1301, USA. | 22 * Boston, MA 02110-1301, USA. |
23 */ | 23 */ |
24 | 24 |
25 #ifndef SVGPaintContext_h | 25 #ifndef SVGPaintContext_h |
26 #define SVGPaintContext_h | 26 #define SVGPaintContext_h |
27 | 27 |
| 28 #include <memory> |
28 #include "core/layout/svg/LayoutSVGResourcePaintServer.h" | 29 #include "core/layout/svg/LayoutSVGResourcePaintServer.h" |
29 #include "core/paint/ClipPathClipper.h" | 30 #include "core/paint/ClipPathClipper.h" |
30 #include "core/paint/ObjectPaintProperties.h" | 31 #include "core/paint/ObjectPaintProperties.h" |
31 #include "core/paint/PaintInfo.h" | 32 #include "core/paint/PaintInfo.h" |
32 #include "core/paint/SVGFilterPainter.h" | 33 #include "core/paint/SVGFilterPainter.h" |
33 #include "core/paint/TransformRecorder.h" | 34 #include "core/paint/TransformRecorder.h" |
34 #include "platform/graphics/paint/CompositingRecorder.h" | 35 #include "platform/graphics/paint/CompositingRecorder.h" |
35 #include "platform/graphics/paint/ScopedPaintChunkProperties.h" | 36 #include "platform/graphics/paint/ScopedPaintChunkProperties.h" |
36 #include "platform/transforms/AffineTransform.h" | 37 #include "platform/transforms/AffineTransform.h" |
37 #include <memory> | |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class LayoutObject; | 41 class LayoutObject; |
42 class LayoutSVGResourceFilter; | 42 class LayoutSVGResourceFilter; |
43 class LayoutSVGResourceMasker; | 43 class LayoutSVGResourceMasker; |
44 class SVGResources; | 44 class SVGResources; |
45 | 45 |
46 // This class hooks up the correct paint property transform node when spv2 is | 46 // This class hooks up the correct paint property transform node when spv2 is |
47 // enabled, and otherwise works like a TransformRecorder which emits Transform | 47 // enabled, and otherwise works like a TransformRecorder which emits Transform |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 std::unique_ptr<SVGFilterRecordingContext> filter_recording_context_; | 154 std::unique_ptr<SVGFilterRecordingContext> filter_recording_context_; |
155 Optional<ScopedPaintChunkProperties> scoped_paint_chunk_properties_; | 155 Optional<ScopedPaintChunkProperties> scoped_paint_chunk_properties_; |
156 #if DCHECK_IS_ON() | 156 #if DCHECK_IS_ON() |
157 bool apply_clip_mask_and_filter_if_necessary_called_ = false; | 157 bool apply_clip_mask_and_filter_if_necessary_called_ = false; |
158 #endif | 158 #endif |
159 }; | 159 }; |
160 | 160 |
161 } // namespace blink | 161 } // namespace blink |
162 | 162 |
163 #endif // SVGPaintContext_h | 163 #endif // SVGPaintContext_h |
OLD | NEW |