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

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: re-add layout test Created 4 years, 5 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 markAllCellsWidthsDirtyAndOrNeedsLayout(bool markNeedsLayout);
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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 bool m_hasMultipleCellLevels; 400 bool m_hasMultipleCellLevels;
400 401
401 LayoutUnit m_offsetForRepeatingHeader; 402 LayoutUnit m_offsetForRepeatingHeader;
402 }; 403 };
403 404
404 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); 405 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection());
405 406
406 } // namespace blink 407 } // namespace blink
407 408
408 #endif // LayoutTableSection_h 409 #endif // LayoutTableSection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698