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

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

Issue 2370673002: Changed EDisplay to an enum class and renamed its members to be keywords (Closed)
Patch Set: Comment 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 Apple Inc. All rights reserved. 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved.
8 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 public: 61 public:
62 explicit LayoutTableCol(Element*); 62 explicit LayoutTableCol(Element*);
63 63
64 void clearPreferredLogicalWidthsDirtyBits(); 64 void clearPreferredLogicalWidthsDirtyBits();
65 65
66 // The 'span' attribute in HTML. 66 // The 'span' attribute in HTML.
67 // For CSS table columns or colgroups, this is always 1. 67 // For CSS table columns or colgroups, this is always 1.
68 unsigned span() const { return m_span; } 68 unsigned span() const { return m_span; }
69 69
70 bool isTableColumnGroupWithColumnChildren() { return firstChild(); } 70 bool isTableColumnGroupWithColumnChildren() { return firstChild(); }
71 bool isTableColumn() const { return style()->display() == TABLE_COLUMN; } 71 bool isTableColumn() const { return style()->display() == EDisplay::TableCol umn; }
72 bool isTableColumnGroup() const { return style()->display() == TABLE_COLUMN_ GROUP; } 72 bool isTableColumnGroup() const { return style()->display() == EDisplay::Tab leColumnGroup; }
73 73
74 LayoutTableCol* enclosingColumnGroup() const; 74 LayoutTableCol* enclosingColumnGroup() const;
75 75
76 // Returns the next column or column-group. 76 // Returns the next column or column-group.
77 LayoutTableCol* nextColumn() const; 77 LayoutTableCol* nextColumn() const;
78 78
79 const BorderValue& borderAdjoiningCellStartBorder(const LayoutTableCell*) co nst; 79 const BorderValue& borderAdjoiningCellStartBorder(const LayoutTableCell*) co nst;
80 const BorderValue& borderAdjoiningCellEndBorder(const LayoutTableCell*) cons t; 80 const BorderValue& borderAdjoiningCellEndBorder(const LayoutTableCell*) cons t;
81 const BorderValue& borderAdjoiningCellBefore(const LayoutTableCell*) const; 81 const BorderValue& borderAdjoiningCellBefore(const LayoutTableCell*) const;
82 const BorderValue& borderAdjoiningCellAfter(const LayoutTableCell*) const; 82 const BorderValue& borderAdjoiningCellAfter(const LayoutTableCell*) const;
(...skipping 19 matching lines...) Expand all
102 LayoutTable* table() const; 102 LayoutTable* table() const;
103 103
104 unsigned m_span; 104 unsigned m_span;
105 }; 105 };
106 106
107 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableCol, isLayoutTableCol()); 107 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableCol, isLayoutTableCol());
108 108
109 } // namespace blink 109 } // namespace blink
110 110
111 #endif 111 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableCell.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTableCol.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698