Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 74 | 74 |
| 75 // The 'span' attribute in HTML. | 75 // The 'span' attribute in HTML. |
| 76 // For CSS table columns or colgroups, this is always 1. | 76 // For CSS table columns or colgroups, this is always 1. |
| 77 unsigned span() const { return m_span; } | 77 unsigned span() const { return m_span; } |
| 78 | 78 |
| 79 bool isTableColumnGroupWithColumnChildren() { return firstChild(); } | 79 bool isTableColumnGroupWithColumnChildren() { return firstChild(); } |
| 80 bool isTableColumn() const { return style()->display() == TABLE_COLUMN; } | 80 bool isTableColumn() const { return style()->display() == TABLE_COLUMN; } |
| 81 bool isTableColumnGroup() const { return style()->display() == TABLE_COLUMN_ GROUP; } | 81 bool isTableColumnGroup() const { return style()->display() == TABLE_COLUMN_ GROUP; } |
| 82 | 82 |
| 83 LayoutTableCol* enclosingColumnGroup() const; | 83 LayoutTableCol* enclosingColumnGroup() const; |
| 84 LayoutTableCol* lastColumnInGroup() const; | |
| 84 | 85 |
| 85 // Returns the next column or column-group. | 86 // Returns the next column or column-group. |
| 86 LayoutTableCol* nextColumn() const; | 87 LayoutTableCol* nextColumn() const; |
| 87 | 88 |
| 88 const BorderValue& borderAdjoiningCellStartBorder(const LayoutTableCell*) co nst; | 89 const BorderValue& borderAdjoiningCellStartBorder(const LayoutTableCell*) co nst; |
| 89 const BorderValue& borderAdjoiningCellEndBorder(const LayoutTableCell*) cons t; | 90 const BorderValue& borderAdjoiningCellEndBorder(const LayoutTableCell*) cons t; |
| 90 const BorderValue& borderAdjoiningCellBefore(const LayoutTableCell*) const; | 91 const BorderValue& borderAdjoiningCellBefore(const LayoutTableCell*) const; |
| 91 const BorderValue& borderAdjoiningCellAfter(const LayoutTableCell*) const; | 92 const BorderValue& borderAdjoiningCellAfter(const LayoutTableCell*) const; |
| 92 | 93 |
| 93 const char* name() const override { return "LayoutTableCol"; } | 94 const char* name() const override { return "LayoutTableCol"; } |
| 94 | 95 |
| 96 LayoutRect positionByCellSpan() const; | |
| 97 | |
| 98 Vector<LayoutTableCell*> getColumnCells() const; | |
|
Xianzhu
2016/02/23 22:58:27
Nit: omit 'get'.
atotic1
2016/03/15 16:50:47
Done.
| |
| 99 | |
| 100 Vector<unsigned> getColumnIndexes() const; | |
| 101 | |
| 95 private: | 102 private: |
| 96 LayoutObjectChildList* virtualChildren() override { return children(); } | 103 LayoutObjectChildList* virtualChildren() override { return children(); } |
| 97 const LayoutObjectChildList* virtualChildren() const override { return child ren(); } | 104 const LayoutObjectChildList* virtualChildren() const override { return child ren(); } |
| 98 | 105 |
| 99 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectLayoutTableCol || LayoutBox::isOfType(type); } | 106 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectLayoutTableCol || LayoutBox::isOfType(type); } |
| 100 void updateFromElement() override; | 107 void updateFromElement() override; |
| 101 void computePreferredLogicalWidths() override { ASSERT_NOT_REACHED(); } | 108 void computePreferredLogicalWidths() override { ASSERT_NOT_REACHED(); } |
| 102 | 109 |
| 103 void insertedIntoTree() override; | 110 void insertedIntoTree() override; |
| 104 void willBeRemovedFromTree() override; | 111 void willBeRemovedFromTree() override; |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 116 | 123 |
| 117 LayoutObjectChildList m_children; | 124 LayoutObjectChildList m_children; |
| 118 unsigned m_span; | 125 unsigned m_span; |
| 119 }; | 126 }; |
| 120 | 127 |
| 121 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableCol, isLayoutTableCol()); | 128 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableCol, isLayoutTableCol()); |
| 122 | 129 |
| 123 } // namespace blink | 130 } // namespace blink |
| 124 | 131 |
| 125 #endif | 132 #endif |
| OLD | NEW |