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

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

Issue 2358663003: [css-tables] Set needsLayout on cells when table border width changes (Closed)
Patch Set: refactor some code into LayoutTable::markAllCellsWidthsDirty... Created 4 years, 2 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 enum WhatToMarkAllCells { MarkDirtyOnly, MarkDirtyAndNeedsLayout }; 118
119 void markAllCellsWidthsDirtyAndOrNeedsLayout(WhatToMarkAllCells); 119 void markAllCellsWidthsDirtyAndOrNeedsLayout(LayoutTable::WhatToMarkAllCells );
120 120
121 LayoutTable* table() const { return toLayoutTable(parent()); } 121 LayoutTable* table() const { return toLayoutTable(parent()); }
122 122
123 typedef Vector<LayoutTableCell*, 2> SpanningLayoutTableCells; 123 typedef Vector<LayoutTableCell*, 2> SpanningLayoutTableCells;
124 124
125 // CellStruct represents the cells that occupy an (N, M) position in the 125 // CellStruct represents the cells that occupy an (N, M) position in the
126 // table grid. 126 // table grid.
127 struct CellStruct { 127 struct CellStruct {
128 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 128 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
129 public: 129 public:
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 bool m_hasMultipleCellLevels; 406 bool m_hasMultipleCellLevels;
407 407
408 LayoutUnit m_offsetForRepeatingHeader; 408 LayoutUnit m_offsetForRepeatingHeader;
409 }; 409 };
410 410
411 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); 411 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection());
412 412
413 } // namespace blink 413 } // namespace blink
414 414
415 #endif // LayoutTableSection_h 415 #endif // LayoutTableSection_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableCol.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTableSection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698