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

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

Issue 2013693002: [css-tables] Set table and cell widths dirty when section border changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: now with layout test Created 4 years, 6 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) over ride; 108 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) over ride;
109 109
110 int firstLineBoxBaseline() const override; 110 int firstLineBoxBaseline() const override;
111 111
112 void addCell(LayoutTableCell*, LayoutTableRow*); 112 void addCell(LayoutTableCell*, LayoutTableRow*);
113 113
114 int calcRowLogicalHeight(); 114 int calcRowLogicalHeight();
115 void layoutRows(); 115 void layoutRows();
116 void computeOverflowFromCells(); 116 void computeOverflowFromCells();
117 bool recalcChildOverflowAfterStyleChange(); 117 bool recalcChildOverflowAfterStyleChange();
118 void markAllCellWidthsDirty();
118 119
119 LayoutTable* table() const { return toLayoutTable(parent()); } 120 LayoutTable* table() const { return toLayoutTable(parent()); }
120 121
121 typedef Vector<LayoutTableCell*, 2> SpanningLayoutTableCells; 122 typedef Vector<LayoutTableCell*, 2> SpanningLayoutTableCells;
122 123
123 // CellStruct represents the cells that occupy an (N, M) position in the 124 // CellStruct represents the cells that occupy an (N, M) position in the
124 // table grid. 125 // table grid.
125 struct CellStruct { 126 struct CellStruct {
126 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 127 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
127 public: 128 public:
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 // The use is to disable a painting optimization where we just paint the 391 // The use is to disable a painting optimization where we just paint the
391 // invalidated cells. 392 // invalidated cells.
392 bool m_hasMultipleCellLevels; 393 bool m_hasMultipleCellLevels;
393 }; 394 };
394 395
395 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); 396 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection());
396 397
397 } // namespace blink 398 } // namespace blink
398 399
399 #endif // LayoutTableSection_h 400 #endif // LayoutTableSection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698