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

Side by Side Diff: third_party/WebKit/Source/core/paint/ReplacedPainter.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 ReplacedPainter_h 5 #ifndef ReplacedPainter_h
6 #define ReplacedPainter_h 6 #define ReplacedPainter_h
7 7
8 #include "wtf/Allocator.h" 8 #include "wtf/Allocator.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 struct PaintInfo; 12 struct PaintInfo;
13 class LayoutPoint; 13 class LayoutPoint;
14 class LayoutReplaced; 14 class LayoutReplaced;
15 15
16 class ReplacedPainter { 16 class ReplacedPainter {
17 STACK_ALLOCATED(); 17 STACK_ALLOCATED();
18 18
19 public: 19 public:
20 ReplacedPainter(const LayoutReplaced& layoutReplaced) 20 ReplacedPainter(const LayoutReplaced& layoutReplaced)
21 : m_layoutReplaced(layoutReplaced) {} 21 : m_layoutReplaced(layoutReplaced) {}
22 22
23 void paint(const PaintInfo&, const LayoutPoint&); 23 void paint(const PaintInfo&, const LayoutPoint&);
24 24
25 // The adjustedPaintOffset should include the location (offset) of the object itself. 25 // The adjustedPaintOffset should include the location (offset) of the object
26 // itself.
26 bool shouldPaint(const PaintInfo&, 27 bool shouldPaint(const PaintInfo&,
27 const LayoutPoint& adjustedPaintOffset) const; 28 const LayoutPoint& adjustedPaintOffset) const;
28 29
29 private: 30 private:
30 const LayoutReplaced& m_layoutReplaced; 31 const LayoutReplaced& m_layoutReplaced;
31 }; 32 };
32 33
33 } // namespace blink 34 } // namespace blink
34 35
35 #endif // ReplacedPainter_h 36 #endif // ReplacedPainter_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h ('k') | third_party/WebKit/Source/core/paint/ReplacedPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698