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

Side by Side Diff: Source/core/layout/LayoutTable.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/LayoutState.h ('k') | Source/core/layout/LayoutTableSection.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) 1997 Martin Jones (mjones@kde.org) 2 * Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 * (C) 1997 Torben Weis (weis@kde.org) 3 * (C) 1997 Torben Weis (weis@kde.org)
4 * (C) 1998 Waldo Bastian (bastian@kde.org) 4 * (C) 1998 Waldo Bastian (bastian@kde.org)
5 * (C) 1999 Lars Knoll (knoll@kde.org) 5 * (C) 1999 Lars Knoll (knoll@kde.org)
6 * (C) 1999 Antti Koivisto (koivisto@kde.org) 6 * (C) 1999 Antti Koivisto (koivisto@kde.org)
7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2010 Apple Inc. All rights reserv ed. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2010 Apple Inc. All rights reserv ed.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 } 120 }
121 121
122 int calcBorderStart() const; 122 int calcBorderStart() const;
123 int calcBorderEnd() const; 123 int calcBorderEnd() const;
124 void recalcBordersInRowDirection(); 124 void recalcBordersInRowDirection();
125 125
126 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) over ride; 126 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) over ride;
127 void addChildIgnoringContinuation(LayoutObject* newChild, LayoutObject* befo reChild = nullptr) override; 127 void addChildIgnoringContinuation(LayoutObject* newChild, LayoutObject* befo reChild = nullptr) override;
128 128
129 struct ColumnStruct { 129 struct ColumnStruct {
130 ALLOW_ONLY_INLINE_ALLOCATION();
130 explicit ColumnStruct(unsigned initialSpan = 1) 131 explicit ColumnStruct(unsigned initialSpan = 1)
131 : span(initialSpan) 132 : span(initialSpan)
132 { 133 {
133 } 134 }
134 135
135 unsigned span; 136 unsigned span;
136 }; 137 };
137 138
138 void forceSectionsRecalc() 139 void forceSectionsRecalc()
139 { 140 {
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 if (m_firstBody) 367 if (m_firstBody)
367 return m_firstBody; 368 return m_firstBody;
368 return m_foot; 369 return m_foot;
369 } 370 }
370 371
371 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable()); 372 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable());
372 373
373 } // namespace blink 374 } // namespace blink
374 375
375 #endif // LayoutTable_h 376 #endif // LayoutTable_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutState.h ('k') | Source/core/layout/LayoutTableSection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698