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

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

Issue 2805103003: Optimize collapsed border calculation (step 2) (Closed)
Patch Set: - Created 3 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, 2007, 2009, 2013 Apple Inc. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2013 Apple Inc.
8 * All rights reserved. 8 * All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 LayoutUnit BorderLeft() const override; 179 LayoutUnit BorderLeft() const override;
180 LayoutUnit BorderRight() const override; 180 LayoutUnit BorderRight() const override;
181 LayoutUnit BorderTop() const override; 181 LayoutUnit BorderTop() const override;
182 LayoutUnit BorderBottom() const override; 182 LayoutUnit BorderBottom() const override;
183 LayoutUnit BorderStart() const override; 183 LayoutUnit BorderStart() const override;
184 LayoutUnit BorderEnd() const override; 184 LayoutUnit BorderEnd() const override;
185 LayoutUnit BorderBefore() const override; 185 LayoutUnit BorderBefore() const override;
186 LayoutUnit BorderAfter() const override; 186 LayoutUnit BorderAfter() const override;
187 187
188 void InvalidateCollapsedBordersOfAffectedCells();
188 void CollectCollapsedBorderValues(LayoutTable::CollapsedBorderValues&); 189 void CollectCollapsedBorderValues(LayoutTable::CollapsedBorderValues&);
189 static void SortCollapsedBorderValues(LayoutTable::CollapsedBorderValues&); 190 static void SortCollapsedBorderValues(LayoutTable::CollapsedBorderValues&);
190 191
191 void UpdateLayout() override; 192 void UpdateLayout() override;
192 193
193 void Paint(const PaintInfo&, const LayoutPoint&) const override; 194 void Paint(const PaintInfo&, const LayoutPoint&) const override;
194 195
195 int CellBaselinePosition() const; 196 int CellBaselinePosition() const;
196 bool IsBaselineAligned() const { 197 bool IsBaselineAligned() const {
197 EVerticalAlign va = Style()->VerticalAlign(); 198 EVerticalAlign va = Style()->VerticalAlign();
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 return ToLayoutTableCell(FirstChild()); 460 return ToLayoutTableCell(FirstChild());
460 } 461 }
461 462
462 inline LayoutTableCell* LayoutTableRow::LastCell() const { 463 inline LayoutTableCell* LayoutTableRow::LastCell() const {
463 return ToLayoutTableCell(LastChild()); 464 return ToLayoutTableCell(LastChild());
464 } 465 }
465 466
466 } // namespace blink 467 } // namespace blink
467 468
468 #endif // LayoutTableCell_h 469 #endif // LayoutTableCell_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698