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

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

Issue 821203003: Handling of percent less than 1 while extra height distribution in spanning rows. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review comments addressed Created 5 years, 9 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 253
254 int borderSpacingForRow(unsigned row) const { return m_grid[row].rowRenderer ? table()->vBorderSpacing() : 0; } 254 int borderSpacingForRow(unsigned row) const { return m_grid[row].rowRenderer ? table()->vBorderSpacing() : 0; }
255 255
256 void ensureRows(unsigned); 256 void ensureRows(unsigned);
257 257
258 bool rowHasOnlySpanningCells(unsigned); 258 bool rowHasOnlySpanningCells(unsigned);
259 unsigned calcRowHeightHavingOnlySpanningCells(unsigned, int&, unsigned, unsi gned&, Vector<int>&); 259 unsigned calcRowHeightHavingOnlySpanningCells(unsigned, int&, unsigned, unsi gned&, Vector<int>&);
260 void updateRowsHeightHavingOnlySpanningCells(LayoutTableCell*, struct Spanni ngRowsHeight&, unsigned&, Vector<int>&); 260 void updateRowsHeightHavingOnlySpanningCells(LayoutTableCell*, struct Spanni ngRowsHeight&, unsigned&, Vector<int>&);
261 261
262 void populateSpanningRowsHeightFromCell(LayoutTableCell*, struct SpanningRow sHeight&); 262 void populateSpanningRowsHeightFromCell(LayoutTableCell*, struct SpanningRow sHeight&);
263 void distributeExtraRowSpanHeightToPercentRows(LayoutTableCell*, int, int&, Vector<int>&); 263 void distributeExtraRowSpanHeightToPercentRows(LayoutTableCell*, LayoutUnit, int&, Vector<int>&);
264 void distributeWholeExtraRowSpanHeightToPercentRows(LayoutTableCell*, int, i nt&, Vector<int>&); 264 void distributeWholeExtraRowSpanHeightToPercentRows(LayoutTableCell*, Layout Unit, int&, Vector<int>&);
265 void distributeExtraRowSpanHeightToAutoRows(LayoutTableCell*, int, int&, Vec tor<int>&); 265 void distributeExtraRowSpanHeightToAutoRows(LayoutTableCell*, int, int&, Vec tor<int>&);
266 void distributeExtraRowSpanHeightToRemainingRows(LayoutTableCell*, int, int& , Vector<int>&); 266 void distributeExtraRowSpanHeightToRemainingRows(LayoutTableCell*, int, int& , Vector<int>&);
267 void distributeRowSpanHeightToRows(SpanningLayoutTableCells& rowSpanCells); 267 void distributeRowSpanHeightToRows(SpanningLayoutTableCells& rowSpanCells);
268 268
269 void distributeExtraLogicalHeightToPercentRows(int& extraLogicalHeight, int totalPercent); 269 void distributeExtraLogicalHeightToPercentRows(int& extraLogicalHeight, int totalPercent);
270 void distributeExtraLogicalHeightToAutoRows(int& extraLogicalHeight, unsigne d autoRowsCount); 270 void distributeExtraLogicalHeightToAutoRows(int& extraLogicalHeight, unsigne d autoRowsCount);
271 void distributeRemainingExtraLogicalHeight(int& extraLogicalHeight); 271 void distributeRemainingExtraLogicalHeight(int& extraLogicalHeight);
272 272
273 void updateBaselineForCell(LayoutTableCell*, unsigned row, LayoutUnit& basel ineDescent); 273 void updateBaselineForCell(LayoutTableCell*, unsigned row, LayoutUnit& basel ineDescent);
274 274
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 // This map holds the collapsed border values for cells with collapsed borde rs. 313 // This map holds the collapsed border values for cells with collapsed borde rs.
314 // It is held at LayoutTableSection level to spare memory consumption by tab le cells. 314 // It is held at LayoutTableSection level to spare memory consumption by tab le cells.
315 HashMap<pair<const LayoutTableCell*, int>, CollapsedBorderValue> m_cellsColl apsedBorders; 315 HashMap<pair<const LayoutTableCell*, int>, CollapsedBorderValue> m_cellsColl apsedBorders;
316 }; 316 };
317 317
318 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection()); 318 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableSection, isTableSection());
319 319
320 } // namespace blink 320 } // namespace blink
321 321
322 #endif // LayoutTableSection_h 322 #endif // LayoutTableSection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698