OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. |
6 * All rights reserved. | 6 * All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 LayoutBox&); | 446 LayoutBox&); |
447 | 447 |
448 // TODO(jchaffraix): We should rename this function as inline-flex and | 448 // TODO(jchaffraix): We should rename this function as inline-flex and |
449 // inline-grid as also covered. | 449 // inline-grid as also covered. |
450 // Alternatively it should be removed as we clarify the meaning of | 450 // Alternatively it should be removed as we clarify the meaning of |
451 // isAtomicInlineLevel to imply isInline. | 451 // isAtomicInlineLevel to imply isInline. |
452 bool IsInlineBlockOrInlineTable() const final { | 452 bool IsInlineBlockOrInlineTable() const final { |
453 return IsInline() && IsAtomicInlineLevel(); | 453 return IsInline() && IsAtomicInlineLevel(); |
454 } | 454 } |
455 | 455 |
| 456 bool NeedsPreferredWidthsRecalculation() const override; |
| 457 |
456 private: | 458 private: |
457 LayoutObjectChildList* VirtualChildren() final { return Children(); } | 459 LayoutObjectChildList* VirtualChildren() final { return Children(); } |
458 const LayoutObjectChildList* VirtualChildren() const final { | 460 const LayoutObjectChildList* VirtualChildren() const final { |
459 return Children(); | 461 return Children(); |
460 } | 462 } |
461 | 463 |
462 bool IsLayoutBlock() const final { return true; } | 464 bool IsLayoutBlock() const final { return true; } |
463 | 465 |
464 virtual void RemoveLeftoverAnonymousBlock(LayoutBlock* child); | 466 virtual void RemoveLeftoverAnonymousBlock(LayoutBlock* child); |
465 | 467 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 // TODO(lunalu): Temporary in order to ensure compatibility with existing | 570 // TODO(lunalu): Temporary in order to ensure compatibility with existing |
569 // layout test results. | 571 // layout test results. |
570 virtual void AdjustChildDebugRect(LayoutRect&) const {} | 572 virtual void AdjustChildDebugRect(LayoutRect&) const {} |
571 }; | 573 }; |
572 | 574 |
573 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, IsLayoutBlock()); | 575 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, IsLayoutBlock()); |
574 | 576 |
575 } // namespace blink | 577 } // namespace blink |
576 | 578 |
577 #endif // LayoutBlock_h | 579 #endif // LayoutBlock_h |
OLD | NEW |