| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Robert Hogan <robert@roberthogan.net> | 2 * Copyright (C) 2011 Robert Hogan <robert@roberthogan.net> |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 public: | 46 public: |
| 47 explicit LayoutTableCaption(Element*); | 47 explicit LayoutTableCaption(Element*); |
| 48 ~LayoutTableCaption() override; | 48 ~LayoutTableCaption() override; |
| 49 LayoutUnit containingBlockLogicalWidthForContent() const override; | 49 LayoutUnit containingBlockLogicalWidthForContent() const override; |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 bool isOfType(LayoutObjectType type) const override { | 52 bool isOfType(LayoutObjectType type) const override { |
| 53 return type == LayoutObjectTableCaption || LayoutBlockFlow::isOfType(type); | 53 return type == LayoutObjectTableCaption || LayoutBlockFlow::isOfType(type); |
| 54 } | 54 } |
| 55 | 55 |
| 56 char objectSize() const override { return sizeof(this); } |
| 57 |
| 56 void insertedIntoTree() override; | 58 void insertedIntoTree() override; |
| 57 void willBeRemovedFromTree() override; | 59 void willBeRemovedFromTree() override; |
| 58 | 60 |
| 59 LayoutTable* table() const; | 61 LayoutTable* table() const; |
| 60 }; | 62 }; |
| 61 | 63 |
| 62 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableCaption, isTableCaption()); | 64 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTableCaption, isTableCaption()); |
| 63 | 65 |
| 64 } // namespace blink | 66 } // namespace blink |
| 65 | 67 |
| 66 #endif // LayoutTableCaption_h | 68 #endif // LayoutTableCaption_h |
| OLD | NEW |