Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / core / paint / SVGImagePainter.h
blob45ce189ebcb63c1fbe4da2608e0a70da3c1a6167
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
3 // found in the LICENSE file.
5 #ifndef SVGImagePainter_h
6 #define SVGImagePainter_h
8 #include "wtf/Allocator.h"
10 namespace blink {
12 struct PaintInfo;
13 class LayoutSVGImage;
15 class SVGImagePainter {
16 STACK_ALLOCATED();
17 public:
18 SVGImagePainter(LayoutSVGImage& layoutSVGImage) : m_layoutSVGImage(layoutSVGImage) { }
20 void paint(const PaintInfo&);
22 private:
23 // Assumes the PaintInfo context has had all local transforms applied.
24 void paintForeground(const PaintInfo&);
26 LayoutSVGImage& m_layoutSVGImage;
29 } // namespace blink
31 #endif // SVGImagePainter_h