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 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 | 812 |
813 void setBreakBefore(EBreak); | 813 void setBreakBefore(EBreak); |
814 void setBreakAfter(EBreak); | 814 void setBreakAfter(EBreak); |
815 EBreak breakBefore() const override; | 815 EBreak breakBefore() const override; |
816 EBreak breakAfter() const override; | 816 EBreak breakAfter() const override; |
817 | 817 |
818 LayoutUnit adjustBlockChildForPagination(LayoutUnit logicalTop, | 818 LayoutUnit adjustBlockChildForPagination(LayoutUnit logicalTop, |
819 LayoutBox& child, | 819 LayoutBox& child, |
820 BlockChildrenLayoutInfo&, | 820 BlockChildrenLayoutInfo&, |
821 bool atBeforeSideOfBlock); | 821 bool atBeforeSideOfBlock); |
| 822 |
| 823 // If a float cannot fit in the current fragmentainer, return the logical top |
| 824 // margin edge that the float needs to have in order to be pushed to the top |
| 825 // of the next fragmentainer. Otherwise, just return |logicalTopMarginEdge|. |
| 826 LayoutUnit adjustFloatForPagination(LayoutBox&, |
| 827 LayoutUnit logicalTopMarginEdge); |
| 828 |
822 // Computes a deltaOffset value that put a line at the top of the next page if | 829 // Computes a deltaOffset value that put a line at the top of the next page if |
823 // it doesn't fit on the current page. | 830 // it doesn't fit on the current page. |
824 void adjustLinePositionForPagination(RootInlineBox&, LayoutUnit& deltaOffset); | 831 void adjustLinePositionForPagination(RootInlineBox&, LayoutUnit& deltaOffset); |
| 832 |
825 // If the child is unsplittable and can't fit on the current page, return the | 833 // If the child is unsplittable and can't fit on the current page, return the |
826 // top of the next page/column. | 834 // top of the next page/column. |
827 LayoutUnit adjustForUnsplittableChild(LayoutBox&, | 835 LayoutUnit adjustForUnsplittableChild(LayoutBox&, |
828 LayoutUnit logicalOffset) const; | 836 LayoutUnit logicalOffset) const; |
829 | 837 |
830 // Used to store state between styleWillChange and styleDidChange | 838 // Used to store state between styleWillChange and styleDidChange |
831 static bool s_canPropagateFloatIntoSibling; | 839 static bool s_canPropagateFloatIntoSibling; |
832 | 840 |
833 LineBoxList m_lineBoxes; // All of the root line boxes created for this block | 841 LineBoxList m_lineBoxes; // All of the root line boxes created for this block |
834 // flow. For example, <div>Hello<br>world.</div> | 842 // flow. For example, <div>Hello<br>world.</div> |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 void positionDialog(); | 942 void positionDialog(); |
935 | 943 |
936 // END METHODS DEFINED IN LayoutBlockFlowLine | 944 // END METHODS DEFINED IN LayoutBlockFlowLine |
937 }; | 945 }; |
938 | 946 |
939 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); | 947 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlockFlow, isLayoutBlockFlow()); |
940 | 948 |
941 } // namespace blink | 949 } // namespace blink |
942 | 950 |
943 #endif // LayoutBlockFlow_h | 951 #endif // LayoutBlockFlow_h |
OLD | NEW |