| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 SVGImagePainter_h | 5 #ifndef SVGImagePainter_h |
| 6 #define SVGImagePainter_h | 6 #define SVGImagePainter_h |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 | 9 |
| 10 class AffineTransform; | |
| 11 class FloatRect; | |
| 12 class ImageBuffer; | |
| 13 class IntSize; | |
| 14 struct PaintInfo; | 10 struct PaintInfo; |
| 15 class RenderSVGImage; | 11 class RenderSVGImage; |
| 16 | 12 |
| 17 class SVGImagePainter { | 13 class SVGImagePainter { |
| 18 public: | 14 public: |
| 19 SVGImagePainter(RenderSVGImage& renderSVGImage) : m_renderSVGImage(renderSVG
Image) { } | 15 SVGImagePainter(RenderSVGImage& renderSVGImage) : m_renderSVGImage(renderSVG
Image) { } |
| 20 | 16 |
| 21 void paint(PaintInfo&); | 17 void paint(PaintInfo&); |
| 22 | 18 |
| 23 private: | 19 private: |
| 24 // Assumes the PaintInfo context has had all local transforms applied. | 20 // Assumes the PaintInfo context has had all local transforms applied. |
| 25 void paintForeground(PaintInfo&); | 21 void paintForeground(PaintInfo&); |
| 26 | 22 |
| 27 RenderSVGImage& m_renderSVGImage; | 23 RenderSVGImage& m_renderSVGImage; |
| 28 }; | 24 }; |
| 29 | 25 |
| 30 } // namespace blink | 26 } // namespace blink |
| 31 | 27 |
| 32 #endif // SVGImagePainter_h | 28 #endif // SVGImagePainter_h |
| OLD | NEW |