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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 static bool paintForLayoutObject( | 128 static bool paintForLayoutObject( |
129 const PaintInfo&, | 129 const PaintInfo&, |
130 const ComputedStyle&, | 130 const ComputedStyle&, |
131 const LayoutObject&, | 131 const LayoutObject&, |
132 LayoutSVGResourceMode, | 132 LayoutSVGResourceMode, |
133 SkPaint&, | 133 SkPaint&, |
134 const AffineTransform* additionalPaintServerTransform = nullptr); | 134 const AffineTransform* additionalPaintServerTransform = nullptr); |
135 | 135 |
136 private: | 136 private: |
137 void applyCompositingIfNecessary(); | 137 void applyCompositingIfNecessary(); |
| 138 void applyPaintPropertyState(); |
138 void applyClipIfNecessary(); | 139 void applyClipIfNecessary(); |
139 | 140 |
140 // Return true if no masking is necessary or if the mask is successfully | 141 // Return true if no masking is necessary or if the mask is successfully |
141 // applied. | 142 // applied. |
142 bool applyMaskIfNecessary(SVGResources*); | 143 bool applyMaskIfNecessary(SVGResources*); |
143 | 144 |
144 // Return true if no filtering is necessary or if the filter is successfully | 145 // Return true if no filtering is necessary or if the filter is successfully |
145 // applied. | 146 // applied. |
146 bool applyFilterIfNecessary(SVGResources*); | 147 bool applyFilterIfNecessary(SVGResources*); |
147 | 148 |
148 bool isIsolationInstalled() const; | 149 bool isIsolationInstalled() const; |
149 | 150 |
150 const LayoutObject& m_object; | 151 const LayoutObject& m_object; |
151 PaintInfo m_paintInfo; | 152 PaintInfo m_paintInfo; |
152 std::unique_ptr<PaintInfo> m_filterPaintInfo; | 153 std::unique_ptr<PaintInfo> m_filterPaintInfo; |
153 LayoutSVGResourceFilter* m_filter; | 154 LayoutSVGResourceFilter* m_filter; |
154 LayoutSVGResourceMasker* m_masker; | 155 LayoutSVGResourceMasker* m_masker; |
155 std::unique_ptr<CompositingRecorder> m_compositingRecorder; | 156 std::unique_ptr<CompositingRecorder> m_compositingRecorder; |
156 Optional<ClipPathClipper> m_clipPathClipper; | 157 Optional<ClipPathClipper> m_clipPathClipper; |
157 std::unique_ptr<SVGFilterRecordingContext> m_filterRecordingContext; | 158 std::unique_ptr<SVGFilterRecordingContext> m_filterRecordingContext; |
| 159 Optional<ScopedPaintChunkProperties> m_scopedPaintChunkProperties; |
158 #if ENABLE(ASSERT) | 160 #if ENABLE(ASSERT) |
159 bool m_applyClipMaskAndFilterIfNecessaryCalled; | 161 bool m_applyClipMaskAndFilterIfNecessaryCalled; |
160 #endif | 162 #endif |
161 }; | 163 }; |
162 | 164 |
163 } // namespace blink | 165 } // namespace blink |
164 | 166 |
165 #endif // SVGPaintContext_h | 167 #endif // SVGPaintContext_h |
OLD | NEW |