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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 ~SVGPaintContext(); | 110 ~SVGPaintContext(); |
111 | 111 |
112 PaintInfo& paintInfo() { | 112 PaintInfo& paintInfo() { |
113 return m_filterPaintInfo ? *m_filterPaintInfo : m_paintInfo; | 113 return m_filterPaintInfo ? *m_filterPaintInfo : m_paintInfo; |
114 } | 114 } |
115 | 115 |
116 // Return true if these operations aren't necessary or if they are | 116 // Return true if these operations aren't necessary or if they are |
117 // successfully applied. | 117 // successfully applied. |
118 bool applyClipMaskAndFilterIfNecessary(); | 118 bool applyClipMaskAndFilterIfNecessary(); |
119 | 119 |
120 static void paintSubtree(GraphicsContext&, const LayoutObject*); | 120 static void paintResourceSubtree(GraphicsContext&, const LayoutObject*); |
121 | 121 |
122 // TODO(fs): This functions feels a bit misplaced (we don't want this to | 122 // TODO(fs): This functions feels a bit misplaced (we don't want this to |
123 // turn into the new kitchen sink). Move it if a better location surfaces. | 123 // turn into the new kitchen sink). Move it if a better location surfaces. |
124 static bool paintForLayoutObject( | 124 static bool paintForLayoutObject( |
125 const PaintInfo&, | 125 const PaintInfo&, |
126 const ComputedStyle&, | 126 const ComputedStyle&, |
127 const LayoutObject&, | 127 const LayoutObject&, |
128 LayoutSVGResourceMode, | 128 LayoutSVGResourceMode, |
129 PaintFlags&, | 129 PaintFlags&, |
130 const AffineTransform* additionalPaintServerTransform = nullptr); | 130 const AffineTransform* additionalPaintServerTransform = nullptr); |
(...skipping 23 matching lines...) Expand all Loading... |
154 std::unique_ptr<SVGFilterRecordingContext> m_filterRecordingContext; | 154 std::unique_ptr<SVGFilterRecordingContext> m_filterRecordingContext; |
155 Optional<ScopedPaintChunkProperties> m_scopedPaintChunkProperties; | 155 Optional<ScopedPaintChunkProperties> m_scopedPaintChunkProperties; |
156 #if DCHECK_IS_ON() | 156 #if DCHECK_IS_ON() |
157 bool m_applyClipMaskAndFilterIfNecessaryCalled = false; | 157 bool m_applyClipMaskAndFilterIfNecessaryCalled = 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 |