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 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1090 virtual int firstLineBoxBaseline() const { return -1; } | 1090 virtual int firstLineBoxBaseline() const { return -1; } |
1091 virtual int inlineBlockBaseline(LineDirectionMode) const { | 1091 virtual int inlineBlockBaseline(LineDirectionMode) const { |
1092 return -1; | 1092 return -1; |
1093 } // Returns -1 if we should skip this box when computing the baseline of an | 1093 } // Returns -1 if we should skip this box when computing the baseline of an |
1094 // inline-block. | 1094 // inline-block. |
1095 | 1095 |
1096 virtual Node* nodeForHitTest() const { return node(); } | 1096 virtual Node* nodeForHitTest() const { return node(); } |
1097 | 1097 |
1098 bool shrinkToAvoidFloats() const; | 1098 bool shrinkToAvoidFloats() const; |
1099 virtual bool avoidsFloats() const; | 1099 virtual bool avoidsFloats() const; |
| 1100 bool shouldBeConsideredAsReplaced() const; |
1100 | 1101 |
1101 void updateFragmentationInfoForChild(LayoutBox&); | 1102 void updateFragmentationInfoForChild(LayoutBox&); |
1102 bool childNeedsRelayoutForPagination(const LayoutBox&) const; | 1103 bool childNeedsRelayoutForPagination(const LayoutBox&) const; |
1103 void markChildForPaginationRelayoutIfNeeded(LayoutBox&, SubtreeLayoutScope&); | 1104 void markChildForPaginationRelayoutIfNeeded(LayoutBox&, SubtreeLayoutScope&); |
1104 | 1105 |
1105 bool isWritingModeRoot() const { | 1106 bool isWritingModeRoot() const { |
1106 return !parent() || | 1107 return !parent() || |
1107 parent()->style()->getWritingMode() != style()->getWritingMode(); | 1108 parent()->style()->getWritingMode() != style()->getWritingMode(); |
1108 } | 1109 } |
1109 bool isOrthogonalWritingModeRoot() const { | 1110 bool isOrthogonalWritingModeRoot() const { |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1625 | 1626 |
1626 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) { | 1627 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) { |
1627 return breakValue == BreakColumn || breakValue == BreakLeft || | 1628 return breakValue == BreakColumn || breakValue == BreakLeft || |
1628 breakValue == BreakPage || breakValue == BreakRecto || | 1629 breakValue == BreakPage || breakValue == BreakRecto || |
1629 breakValue == BreakRight || breakValue == BreakVerso; | 1630 breakValue == BreakRight || breakValue == BreakVerso; |
1630 } | 1631 } |
1631 | 1632 |
1632 } // namespace blink | 1633 } // namespace blink |
1633 | 1634 |
1634 #endif // LayoutBox_h | 1635 #endif // LayoutBox_h |
OLD | NEW |