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 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 RenderBoxRareData& ensureRareData() | 711 RenderBoxRareData& ensureRareData() |
712 { | 712 { |
713 if (!m_rareData) | 713 if (!m_rareData) |
714 m_rareData = adoptPtr(new RenderBoxRareData()); | 714 m_rareData = adoptPtr(new RenderBoxRareData()); |
715 return *m_rareData.get(); | 715 return *m_rareData.get(); |
716 } | 716 } |
717 | 717 |
718 void savePreviousBorderBoxSizeIfNeeded(); | 718 void savePreviousBorderBoxSizeIfNeeded(); |
719 bool logicalHeightComputesAsNone(SizeType) const; | 719 bool logicalHeightComputesAsNone(SizeType) const; |
720 | 720 |
| 721 void invalidatePaintIfNeeded(const PaintInvalidationState&, const RenderLaye
rModelObject& newPaintInvalidationContainer); |
| 722 |
721 private: | 723 private: |
722 // The width/height of the contents + borders + padding. The x/y location i
s relative to our container (which is not always our parent). | 724 // The width/height of the contents + borders + padding. The x/y location i
s relative to our container (which is not always our parent). |
723 LayoutRect m_frameRect; | 725 LayoutRect m_frameRect; |
724 | 726 |
725 // Our intrinsic height, used for min-height: min-content etc. Maintained by | 727 // Our intrinsic height, used for min-height: min-content etc. Maintained by |
726 // updateLogicalHeight. This is logicalHeight() before it is clamped to | 728 // updateLogicalHeight. This is logicalHeight() before it is clamped to |
727 // min/max. | 729 // min/max. |
728 mutable LayoutUnit m_intrinsicContentLogicalHeight; | 730 mutable LayoutUnit m_intrinsicContentLogicalHeight; |
729 | 731 |
730 protected: | 732 protected: |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 if (UNLIKELY(inlineBoxWrapper() != 0)) | 783 if (UNLIKELY(inlineBoxWrapper() != 0)) |
782 deleteLineBoxWrapper(); | 784 deleteLineBoxWrapper(); |
783 } | 785 } |
784 | 786 |
785 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 787 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
786 } | 788 } |
787 | 789 |
788 } // namespace WebCore | 790 } // namespace WebCore |
789 | 791 |
790 #endif // RenderBox_h | 792 #endif // RenderBox_h |
OLD | NEW |