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

Side by Side Diff: Source/core/layout/line/LineBoxList.h

Issue 1318713003: Make classes and structures in core/layout 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
« no previous file with comments | « Source/core/layout/line/LayoutTextInfo.h ('k') | Source/core/layout/line/LineBreaker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 13 matching lines...) Expand all
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 29
30 #ifndef LineBoxList_h 30 #ifndef LineBoxList_h
31 #define LineBoxList_h 31 #define LineBoxList_h
32 32
33 #include "core/layout/api/HitTestAction.h" 33 #include "core/layout/api/HitTestAction.h"
34 #include "wtf/Allocator.h"
34 #include "wtf/Assertions.h" 35 #include "wtf/Assertions.h"
35 36
36 namespace blink { 37 namespace blink {
37 38
38 class HitTestLocation; 39 class HitTestLocation;
39 class HitTestResult; 40 class HitTestResult;
40 class InlineFlowBox; 41 class InlineFlowBox;
41 class LayoutBoxModelObject; 42 class LayoutBoxModelObject;
42 class LayoutPoint; 43 class LayoutPoint;
43 class LayoutRect; 44 class LayoutRect;
44 class LayoutUnit; 45 class LayoutUnit;
45 class LineLayoutBoxModel; 46 class LineLayoutBoxModel;
46 class LineLayoutItem; 47 class LineLayoutItem;
47 struct PaintInfo; 48 struct PaintInfo;
48 49
49 class LineBoxList { 50 class LineBoxList {
51 DISALLOW_ALLOCATION();
50 public: 52 public:
51 LineBoxList() 53 LineBoxList()
52 : m_firstLineBox(nullptr) 54 : m_firstLineBox(nullptr)
53 , m_lastLineBox(nullptr) 55 , m_lastLineBox(nullptr)
54 { 56 {
55 } 57 }
56 58
57 #if ENABLE(ASSERT) 59 #if ENABLE(ASSERT)
58 ~LineBoxList(); 60 ~LineBoxList();
59 #endif 61 #endif
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 94
93 #if !ENABLE(ASSERT) 95 #if !ENABLE(ASSERT)
94 inline void LineBoxList::checkConsistency() const 96 inline void LineBoxList::checkConsistency() const
95 { 97 {
96 } 98 }
97 #endif 99 #endif
98 100
99 } // namespace blink 101 } // namespace blink
100 102
101 #endif // LineBoxList_h 103 #endif // LineBoxList_h
OLDNEW
« no previous file with comments | « Source/core/layout/line/LayoutTextInfo.h ('k') | Source/core/layout/line/LineBreaker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698