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

Side by Side Diff: Source/core/paint/BlockPainter.h

Issue 1319893002: Make classes and structures in core/paint fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
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 BlockPainter_h 5 #ifndef BlockPainter_h
6 #define BlockPainter_h 6 #define BlockPainter_h
7 7
8 #include "wtf/Allocator.h"
9
8 namespace blink { 10 namespace blink {
9 11
10 struct PaintInfo; 12 struct PaintInfo;
11 class InlineBox; 13 class InlineBox;
12 class LayoutBlock; 14 class LayoutBlock;
13 class LayoutBox; 15 class LayoutBox;
14 class LayoutFlexibleBox; 16 class LayoutFlexibleBox;
15 class LayoutObject; 17 class LayoutObject;
16 class LayoutPoint; 18 class LayoutPoint;
17 class LayoutRect; 19 class LayoutRect;
18 20
19 class BlockPainter { 21 class BlockPainter {
22 STACK_ALLOCATED();
20 public: 23 public:
21 BlockPainter(LayoutBlock& block) : m_layoutBlock(block) { } 24 BlockPainter(LayoutBlock& block) : m_layoutBlock(block) { }
22 25
23 void paint(const PaintInfo&, const LayoutPoint& paintOffset); 26 void paint(const PaintInfo&, const LayoutPoint& paintOffset);
24 void paintObject(const PaintInfo&, const LayoutPoint&); 27 void paintObject(const PaintInfo&, const LayoutPoint&);
25 void paintChildren(const PaintInfo&, const LayoutPoint&); 28 void paintChildren(const PaintInfo&, const LayoutPoint&);
26 void paintChild(LayoutBox&, const PaintInfo&, const LayoutPoint&); 29 void paintChild(LayoutBox&, const PaintInfo&, const LayoutPoint&);
27 void paintChildAsInlineBlock(LayoutBox&, const PaintInfo&, const LayoutPoint &); 30 void paintChildAsInlineBlock(LayoutBox&, const PaintInfo&, const LayoutPoint &);
28 void paintOverflowControlsIfNeeded(const PaintInfo&, const LayoutPoint&); 31 void paintOverflowControlsIfNeeded(const PaintInfo&, const LayoutPoint&);
29 32
(...skipping 10 matching lines...) Expand all
40 void paintCarets(const PaintInfo&, const LayoutPoint&); 43 void paintCarets(const PaintInfo&, const LayoutPoint&);
41 void paintContents(const PaintInfo&, const LayoutPoint&); 44 void paintContents(const PaintInfo&, const LayoutPoint&);
42 void paintContinuationOutlines(const PaintInfo&, const LayoutPoint&); 45 void paintContinuationOutlines(const PaintInfo&, const LayoutPoint&);
43 46
44 LayoutBlock& m_layoutBlock; 47 LayoutBlock& m_layoutBlock;
45 }; 48 };
46 49
47 } // namespace blink 50 } // namespace blink
48 51
49 #endif // BlockPainter_h 52 #endif // BlockPainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698