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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTableSection.h

Issue 1999343002: Unify and provide one IsGarbageCollectedType<T> implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit test Created 4 years, 7 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 /* 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, 2013 Apple Inc. All rights reserv ed. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2013 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 struct CellStruct { 125 struct CellStruct {
126 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 126 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
127 public: 127 public:
128 // All the cells that fills this grid "slot". 128 // All the cells that fills this grid "slot".
129 // Due to colspan / rowpsan, it is possible to have overlapping cells 129 // Due to colspan / rowpsan, it is possible to have overlapping cells
130 // (see class comment about an example). 130 // (see class comment about an example).
131 // This Vector is sorted in DOM order. 131 // This Vector is sorted in DOM order.
132 Vector<LayoutTableCell*, 1> cells; 132 Vector<LayoutTableCell*, 1> cells;
133 bool inColSpan; // true for columns after the first in a colspan 133 bool inColSpan; // true for columns after the first in a colspan
134 134
135 CellStruct() 135 CellStruct();
136 : inColSpan(false) 136 ~CellStruct();
137 {
138 }
139 137
140 // This is the cell in the grid "slot" that is on top of the others 138 // This is the cell in the grid "slot" that is on top of the others
141 // (aka the last cell in DOM order for this slot). 139 // (aka the last cell in DOM order for this slot).
142 // 140 //
143 // This is the cell originating from this slot if it exists. 141 // This is the cell originating from this slot if it exists.
144 // 142 //
145 // The concept of a primary cell is dubious at most as it doesn't 143 // The concept of a primary cell is dubious at most as it doesn't
146 // correspond to a DOM or rendering concept. Also callers should be 144 // correspond to a DOM or rendering concept. Also callers should be
147 // careful about assumptions about it. For example, even though the 145 // careful about assumptions about it. For example, even though the
148 // primary cell is visibly the top most, it is not guaranteed to be 146 // primary cell is visibly the top most, it is not guaranteed to be
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 // The use is to disable a painting optimization where we just paint the 390 // The use is to disable a painting optimization where we just paint the
393 // invalidated cells. 391 // invalidated cells.
394 bool m_hasMultipleCellLevels; 392 bool m_hasMultipleCellLevels;
395 }; 393 };
396 394
397 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); 395 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection());
398 396
399 } // namespace blink 397 } // namespace blink
400 398
401 #endif // LayoutTableSection_h 399 #endif // LayoutTableSection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698