Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / paint / ImagePainter.h
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.
4
5 #ifndef ImagePainter_h
6 #define ImagePainter_h
7
8 namespace blink {
9
10 class GraphicsContext;
11 struct PaintInfo;
12 class LayoutPoint;
13 class LayoutRect;
14 class RenderImage;
15
16 class ImagePainter {
17 public:
18     ImagePainter(RenderImage& renderImage) : m_renderImage(renderImage) { }
19
20     void paint(PaintInfo&, const LayoutPoint& paintOffset);
21     void paintReplaced(PaintInfo&, const LayoutPoint& paintOffset);
22     void paintIntoRect(GraphicsContext*, const LayoutRect& paintOffset);
23     void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint& paintOffset);
24
25 private:
26     void paintAreaElementFocusRing(PaintInfo&);
27
28     RenderImage& m_renderImage;
29 };
30
31 } // namespace blink
32
33 #endif // ImagePainter_h