| 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 ImagePainter_h | 5 #ifndef ImagePainter_h |
| 6 #define ImagePainter_h | 6 #define ImagePainter_h |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 | 9 |
| 10 class GraphicsContext; | 10 class GraphicsContext; |
| 11 struct PaintInfo; | 11 struct PaintInfo; |
| 12 class LayoutPoint; | 12 class LayoutPoint; |
| 13 class LayoutRect; | 13 class LayoutRect; |
| 14 class RenderImage; | 14 class LayoutImage; |
| 15 | 15 |
| 16 class ImagePainter { | 16 class ImagePainter { |
| 17 public: | 17 public: |
| 18 ImagePainter(RenderImage& renderImage) : m_renderImage(renderImage) { } | 18 ImagePainter(LayoutImage& layoutImage) : m_layoutImage(layoutImage) { } |
| 19 | 19 |
| 20 void paint(const PaintInfo&, const LayoutPoint& paintOffset); | 20 void paint(const PaintInfo&, const LayoutPoint& paintOffset); |
| 21 void paintReplaced(const PaintInfo&, const LayoutPoint& paintOffset); | 21 void paintReplaced(const PaintInfo&, const LayoutPoint& paintOffset); |
| 22 void paintIntoRect(GraphicsContext*, const LayoutRect& paintOffset); | 22 void paintIntoRect(GraphicsContext*, const LayoutRect& paintOffset); |
| 23 | 23 |
| 24 private: | 24 private: |
| 25 void paintAreaElementFocusRing(const PaintInfo&); | 25 void paintAreaElementFocusRing(const PaintInfo&); |
| 26 | 26 |
| 27 RenderImage& m_renderImage; | 27 LayoutImage& m_layoutImage; |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 } // namespace blink | 30 } // namespace blink |
| 31 | 31 |
| 32 #endif // ImagePainter_h | 32 #endif // ImagePainter_h |
| OLD | NEW |