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

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

Issue 2578403002: Changed EVerticalAlign to an enum class and renamed its members (Closed)
Patch Set: Created 4 years 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 void collectBorderValues(LayoutTable::CollapsedBorderValues&); 188 void collectBorderValues(LayoutTable::CollapsedBorderValues&);
189 static void sortBorderValues(LayoutTable::CollapsedBorderValues&); 189 static void sortBorderValues(LayoutTable::CollapsedBorderValues&);
190 190
191 void layout() override; 191 void layout() override;
192 192
193 void paint(const PaintInfo&, const LayoutPoint&) const override; 193 void paint(const PaintInfo&, const LayoutPoint&) const override;
194 194
195 int cellBaselinePosition() const; 195 int cellBaselinePosition() const;
196 bool isBaselineAligned() const { 196 bool isBaselineAligned() const {
197 EVerticalAlign va = style()->verticalAlign(); 197 EVerticalAlign va = style()->verticalAlign();
198 return va == VerticalAlignBaseline || va == VerticalAlignTextBottom || 198 return va == EVerticalAlign::Baseline || va == EVerticalAlign::TextBottom ||
199 va == VerticalAlignTextTop || va == VerticalAlignSuper || 199 va == EVerticalAlign::TextTop || va == EVerticalAlign::Super ||
200 va == VerticalAlignSub || va == VerticalAlignLength; 200 va == EVerticalAlign::Sub || va == EVerticalAlign::Length;
201 } 201 }
202 202
203 // Align the cell in the block direction. This is done by calculating an 203 // Align the cell in the block direction. This is done by calculating an
204 // intrinsic padding before and after the cell contents, so that all cells in 204 // intrinsic padding before and after the cell contents, so that all cells in
205 // the row get the same logical height. 205 // the row get the same logical height.
206 void computeIntrinsicPadding(int rowHeight, 206 void computeIntrinsicPadding(int rowHeight,
207 EVerticalAlign, 207 EVerticalAlign,
208 SubtreeLayoutScope&); 208 SubtreeLayoutScope&);
209 209
210 void clearIntrinsicPadding() { setIntrinsicPadding(0, 0); } 210 void clearIntrinsicPadding() { setIntrinsicPadding(0, 0); }
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 return toLayoutTableCell(firstChild()); 467 return toLayoutTableCell(firstChild());
468 } 468 }
469 469
470 inline LayoutTableCell* LayoutTableRow::lastCell() const { 470 inline LayoutTableCell* LayoutTableRow::lastCell() const {
471 return toLayoutTableCell(lastChild()); 471 return toLayoutTableCell(lastChild());
472 } 472 }
473 473
474 } // namespace blink 474 } // namespace blink
475 475
476 #endif // LayoutTableCell_h 476 #endif // LayoutTableCell_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutInline.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTableCell.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698