| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // Returns the next column or column-group. | 80 // Returns the next column or column-group. |
| 81 LayoutTableCol* nextColumn() const; | 81 LayoutTableCol* nextColumn() const; |
| 82 | 82 |
| 83 const BorderValue& borderAdjoiningCellStartBorder( | 83 const BorderValue& borderAdjoiningCellStartBorder( |
| 84 const LayoutTableCell*) const; | 84 const LayoutTableCell*) const; |
| 85 const BorderValue& borderAdjoiningCellEndBorder(const LayoutTableCell*) const; | 85 const BorderValue& borderAdjoiningCellEndBorder(const LayoutTableCell*) const; |
| 86 const BorderValue& borderAdjoiningCellBefore(const LayoutTableCell*) const; | 86 const BorderValue& borderAdjoiningCellBefore(const LayoutTableCell*) const; |
| 87 const BorderValue& borderAdjoiningCellAfter(const LayoutTableCell*) const; | 87 const BorderValue& borderAdjoiningCellAfter(const LayoutTableCell*) const; |
| 88 | 88 |
| 89 const char* name() const override { return "LayoutTableCol"; } | 89 const char* name() const override { return "LayoutTableCol"; } |
| 90 char objectSize() const override { return sizeof(this); } |
| 90 | 91 |
| 91 private: | 92 private: |
| 92 bool isOfType(LayoutObjectType type) const override { | 93 bool isOfType(LayoutObjectType type) const override { |
| 93 return type == LayoutObjectLayoutTableCol || LayoutBox::isOfType(type); | 94 return type == LayoutObjectLayoutTableCol || LayoutBox::isOfType(type); |
| 94 } | 95 } |
| 95 void updateFromElement() override; | 96 void updateFromElement() override; |
| 96 void computePreferredLogicalWidths() override { NOTREACHED(); } | 97 void computePreferredLogicalWidths() override { NOTREACHED(); } |
| 97 | 98 |
| 98 void insertedIntoTree() override; | 99 void insertedIntoTree() override; |
| 99 void willBeRemovedFromTree() override; | 100 void willBeRemovedFromTree() override; |
| 100 | 101 |
| 101 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override; | 102 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override; |
| 102 bool canHaveChildren() const override; | 103 bool canHaveChildren() const override; |
| 103 PaintLayerType layerTypeRequired() const override { return NoPaintLayer; } | 104 PaintLayerType layerTypeRequired() const override { return NoPaintLayer; } |
| 104 | 105 |
| 105 LayoutRect localVisualRect() const override; | 106 LayoutRect localVisualRect() const override; |
| 106 | 107 |
| 107 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; | 108 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; |
| 108 | 109 |
| 109 LayoutTable* table() const; | 110 LayoutTable* table() const; |
| 110 | 111 |
| 111 unsigned m_span; | 112 unsigned m_span; |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableCol, isLayoutTableCol()); | 115 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableCol, isLayoutTableCol()); |
| 115 | 116 |
| 116 } // namespace blink | 117 } // namespace blink |
| 117 | 118 |
| 118 #endif | 119 #endif |
| OLD | NEW |