| 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-2013 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003-2013 Apple Inc. All rights reserved. |
| 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 7 * Copyright (C) 2013 Google Inc. All rights reserved. | 7 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 8 * | 8 * |
| 9 * Redistribution and use in source and binary forms, with or without | 9 * Redistribution and use in source and binary forms, with or without |
| 10 * modification, are permitted provided that the following conditions are | 10 * modification, are permitted provided that the following conditions are |
| (...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 bool m_discardMarginAfter : 1; | 716 bool m_discardMarginAfter : 1; |
| 717 }; | 717 }; |
| 718 | 718 |
| 719 const FloatingObjects* floatingObjects() const { | 719 const FloatingObjects* floatingObjects() const { |
| 720 return m_floatingObjects.get(); | 720 return m_floatingObjects.get(); |
| 721 } | 721 } |
| 722 | 722 |
| 723 static void updateAncestorShouldPaintFloatingObject( | 723 static void updateAncestorShouldPaintFloatingObject( |
| 724 const LayoutBox& floatBox); | 724 const LayoutBox& floatBox); |
| 725 | 725 |
| 726 LayoutBlockFlowRareData& ensureRareData(); |
| 727 |
| 726 protected: | 728 protected: |
| 727 LayoutUnit maxPositiveMarginBefore() const { | 729 LayoutUnit maxPositiveMarginBefore() const { |
| 728 return m_rareData | 730 return m_rareData |
| 729 ? m_rareData->m_margins.positiveMarginBefore() | 731 ? m_rareData->m_margins.positiveMarginBefore() |
| 730 : LayoutBlockFlowRareData::positiveMarginBeforeDefault(this); | 732 : LayoutBlockFlowRareData::positiveMarginBeforeDefault(this); |
| 731 } | 733 } |
| 732 LayoutUnit maxNegativeMarginBefore() const { | 734 LayoutUnit maxNegativeMarginBefore() const { |
| 733 return m_rareData | 735 return m_rareData |
| 734 ? m_rareData->m_margins.negativeMarginBefore() | 736 ? m_rareData->m_margins.negativeMarginBefore() |
| 735 : LayoutBlockFlowRareData::negativeMarginBeforeDefault(this); | 737 : LayoutBlockFlowRareData::negativeMarginBeforeDefault(this); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 844 LayoutUnit adjustForUnsplittableChild(LayoutBox&, | 846 LayoutUnit adjustForUnsplittableChild(LayoutBox&, |
| 845 LayoutUnit logicalOffset) const; | 847 LayoutUnit logicalOffset) const; |
| 846 | 848 |
| 847 // Used to store state between styleWillChange and styleDidChange | 849 // Used to store state between styleWillChange and styleDidChange |
| 848 static bool s_canPropagateFloatIntoSibling; | 850 static bool s_canPropagateFloatIntoSibling; |
| 849 | 851 |
| 850 LineBoxList m_lineBoxes; // All of the root line boxes created for this block | 852 LineBoxList m_lineBoxes; // All of the root line boxes created for this block |
| 851 // flow. For example, <div>Hello<br>world.</div> | 853 // flow. For example, <div>Hello<br>world.</div> |
| 852 // will have two total lines for the <div>. | 854 // will have two total lines for the <div>. |
| 853 | 855 |
| 854 LayoutBlockFlowRareData& ensureRareData(); | |
| 855 | 856 |
| 856 bool isSelfCollapsingBlock() const override; | 857 bool isSelfCollapsingBlock() const override; |
| 857 bool checkIfIsSelfCollapsingBlock() const; | 858 bool checkIfIsSelfCollapsingBlock() const; |
| 858 | 859 |
| 859 protected: | 860 protected: |
| 860 std::unique_ptr<LayoutBlockFlowRareData> m_rareData; | 861 std::unique_ptr<LayoutBlockFlowRareData> m_rareData; |
| 861 std::unique_ptr<FloatingObjects> m_floatingObjects; | 862 std::unique_ptr<FloatingObjects> m_floatingObjects; |
| 862 | 863 |
| 863 friend class MarginInfo; | 864 friend class MarginInfo; |
| 864 friend class LineWidth; // needs to know FloatingObject | 865 friend class LineWidth; // needs to know FloatingObject |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 955 void positionDialog(); | 956 void positionDialog(); |
| 956 | 957 |
| 957 // END METHODS DEFINED IN LayoutBlockFlowLine | 958 // END METHODS DEFINED IN LayoutBlockFlowLine |
| 958 }; | 959 }; |
| 959 | 960 |
| 960 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); | 961 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); |
| 961 | 962 |
| 962 } // namespace blink | 963 } // namespace blink |
| 963 | 964 |
| 964 #endif // LayoutBlockFlow_h | 965 #endif // LayoutBlockFlow_h |
| OLD | NEW |