Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(701)

Side by Side Diff: third_party/WebKit/Source/core/paint/ImagePainter.h

Issue 2392443009: reflow comments in core/paint (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include "wtf/Allocator.h" 8 #include "wtf/Allocator.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class GraphicsContext; 12 class GraphicsContext;
13 struct PaintInfo; 13 struct PaintInfo;
14 class LayoutPoint; 14 class LayoutPoint;
15 class LayoutRect; 15 class LayoutRect;
16 class LayoutImage; 16 class LayoutImage;
17 17
18 class ImagePainter { 18 class ImagePainter {
19 STACK_ALLOCATED(); 19 STACK_ALLOCATED();
20 20
21 public: 21 public:
22 ImagePainter(const LayoutImage& layoutImage) : m_layoutImage(layoutImage) {} 22 ImagePainter(const LayoutImage& layoutImage) : m_layoutImage(layoutImage) {}
23 23
24 void paint(const PaintInfo&, const LayoutPoint& paintOffset); 24 void paint(const PaintInfo&, const LayoutPoint& paintOffset);
25 void paintReplaced(const PaintInfo&, const LayoutPoint& paintOffset); 25 void paintReplaced(const PaintInfo&, const LayoutPoint& paintOffset);
26 26
27 // Paint the image into |destRect|, after clipping by |contentRect|. Both |des tRect| and 27 // Paint the image into |destRect|, after clipping by |contentRect|. Both
28 // |contentRect| should be in local coordinates plus the paint offset. 28 // |destRect| and |contentRect| should be in local coordinates plus the paint
29 // offset.
29 void paintIntoRect(GraphicsContext&, 30 void paintIntoRect(GraphicsContext&,
30 const LayoutRect& destRect, 31 const LayoutRect& destRect,
31 const LayoutRect& contentRect); 32 const LayoutRect& contentRect);
32 33
33 private: 34 private:
34 void paintAreaElementFocusRing(const PaintInfo&, 35 void paintAreaElementFocusRing(const PaintInfo&,
35 const LayoutPoint& paintOffset); 36 const LayoutPoint& paintOffset);
36 37
37 const LayoutImage& m_layoutImage; 38 const LayoutImage& m_layoutImage;
38 }; 39 };
39 40
40 } // namespace blink 41 } // namespace blink
41 42
42 #endif // ImagePainter_h 43 #endif // ImagePainter_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/HTMLCanvasPainter.cpp ('k') | third_party/WebKit/Source/core/paint/ImagePainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698