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, 2010 Apple Inc. All rights reserv
ed. | 7 * Copyright (C) 2003, 2004, 2005, 2006, 2009, 2010 Apple Inc. All rights reserv
ed. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 void paintMask(const PaintInfo&, const LayoutPoint&) const final; | 356 void paintMask(const PaintInfo&, const LayoutPoint&) const final; |
357 | 357 |
358 const CollapsedBorderValues& collapsedBorders() const | 358 const CollapsedBorderValues& collapsedBorders() const |
359 { | 359 { |
360 ASSERT(m_collapsedBordersValid); | 360 ASSERT(m_collapsedBordersValid); |
361 return m_collapsedBorders; | 361 return m_collapsedBorders; |
362 } | 362 } |
363 | 363 |
364 void subtractCaptionRect(LayoutRect&) const; | 364 void subtractCaptionRect(LayoutRect&) const; |
365 | 365 |
| 366 bool isLogicalWidthAuto() const; |
| 367 |
366 const char* name() const override { return "LayoutTable"; } | 368 const char* name() const override { return "LayoutTable"; } |
367 | 369 |
368 protected: | 370 protected: |
369 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; | 371 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; |
370 void simplifiedNormalFlowLayout() override; | 372 void simplifiedNormalFlowLayout() override; |
371 PaintInvalidationReason invalidatePaintIfNeeded(PaintInvalidationState&, con
st LayoutBoxModelObject& paintInvalidationContainer) override; | 373 PaintInvalidationReason invalidatePaintIfNeeded(PaintInvalidationState&, con
st LayoutBoxModelObject& paintInvalidationContainer) override; |
372 void invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState&) override; | 374 void invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState&) override; |
373 | 375 |
374 private: | 376 private: |
375 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectTable || LayoutBlock::isOfType(type); } | 377 bool isOfType(LayoutObjectType type) const override { return type == LayoutO
bjectTable || LayoutBlock::isOfType(type); } |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 if (m_firstBody) | 498 if (m_firstBody) |
497 return m_firstBody; | 499 return m_firstBody; |
498 return m_foot; | 500 return m_foot; |
499 } | 501 } |
500 | 502 |
501 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable()); | 503 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutTable, isTable()); |
502 | 504 |
503 } // namespace blink | 505 } // namespace blink |
504 | 506 |
505 #endif // LayoutTable_h | 507 #endif // LayoutTable_h |
OLD | NEW |