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 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 LayoutUnit fillAvailableMeasure(LayoutUnit availableLogicalWidth) const; | 698 LayoutUnit fillAvailableMeasure(LayoutUnit availableLogicalWidth) const; |
699 LayoutUnit fillAvailableMeasure(LayoutUnit availableLogicalWidth, LayoutUnit
& marginStart, LayoutUnit& marginEnd) const; | 699 LayoutUnit fillAvailableMeasure(LayoutUnit availableLogicalWidth, LayoutUnit
& marginStart, LayoutUnit& marginEnd) const; |
700 | 700 |
701 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const; | 701 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const; |
702 | 702 |
703 // This function calculates the minimum and maximum preferred widths for an
object. | 703 // This function calculates the minimum and maximum preferred widths for an
object. |
704 // These values are used in shrink-to-fit layout systems. | 704 // These values are used in shrink-to-fit layout systems. |
705 // These include tables, positioned objects, floats and flexible boxes. | 705 // These include tables, positioned objects, floats and flexible boxes. |
706 virtual void computePreferredLogicalWidths() { clearPreferredLogicalWidthsDi
rty(); } | 706 virtual void computePreferredLogicalWidths() { clearPreferredLogicalWidthsDi
rty(); } |
707 | 707 |
708 virtual LayoutRect frameRectForStickyPositioning() const OVERRIDE FINAL { re
turn frameRect(); } | |
709 | |
710 RenderBoxRareData& ensureRareData() | 708 RenderBoxRareData& ensureRareData() |
711 { | 709 { |
712 if (!m_rareData) | 710 if (!m_rareData) |
713 m_rareData = adoptPtr(new RenderBoxRareData()); | 711 m_rareData = adoptPtr(new RenderBoxRareData()); |
714 return *m_rareData.get(); | 712 return *m_rareData.get(); |
715 } | 713 } |
716 | 714 |
717 private: | 715 private: |
718 // The width/height of the contents + borders + padding. The x/y location i
s relative to our container (which is not always our parent). | 716 // The width/height of the contents + borders + padding. The x/y location i
s relative to our container (which is not always our parent). |
719 LayoutRect m_frameRect; | 717 LayoutRect m_frameRect; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
777 if (UNLIKELY(inlineBoxWrapper() != 0)) | 775 if (UNLIKELY(inlineBoxWrapper() != 0)) |
778 deleteLineBoxWrapper(); | 776 deleteLineBoxWrapper(); |
779 } | 777 } |
780 | 778 |
781 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 779 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
782 } | 780 } |
783 | 781 |
784 } // namespace WebCore | 782 } // namespace WebCore |
785 | 783 |
786 #endif // RenderBox_h | 784 #endif // RenderBox_h |
OLD | NEW |