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

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

Issue 1363613002: Save previous paint offset in LayoutObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: No union (many compilers don't allow constructors); Fix a typo perhaps caused by switching to combiā€¦ Created 5 years, 3 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 | Annotate | Revision Log
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 LineBoxListPainter_h 5 #ifndef LineBoxListPainter_h
6 #define LineBoxListPainter_h 6 #define LineBoxListPainter_h
7 7
8 #include "core/style/ComputedStyleConstants.h" 8 #include "core/style/ComputedStyleConstants.h"
9 #include "wtf/Allocator.h" 9 #include "wtf/Allocator.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class LayoutPoint; 13 class LayoutPoint;
14 struct PaintInfo; 14 struct PaintInfo;
15 class LayoutBoxModelObject; 15 class LayoutBoxModelObject;
16 class LineBoxList; 16 class LineBoxList;
17 17
18 class LineBoxListPainter { 18 class LineBoxListPainter {
19 STACK_ALLOCATED(); 19 STACK_ALLOCATED();
20 public: 20 public:
21 LineBoxListPainter(LineBoxList& lineBoxList) : m_lineBoxList(lineBoxList) { } 21 LineBoxListPainter(LineBoxList& lineBoxList) : m_lineBoxList(lineBoxList) { }
22 22
23 void paint(LayoutBoxModelObject*, const PaintInfo&, const LayoutPoint&) cons t; 23 void paint(LayoutBoxModelObject*, const PaintInfo&, const LayoutPoint&) cons t;
24 24
25 void invalidateLineBoxPaintOffsets(const PaintInfo&) const;
26
25 private: 27 private:
26 LineBoxList& m_lineBoxList; 28 LineBoxList& m_lineBoxList;
27 }; 29 };
28 30
29 } // namespace blink 31 } // namespace blink
30 32
31 #endif // LineBoxListPainter_h 33 #endif // LineBoxListPainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698