| 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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 bool shrinkToAvoidFloats() const; | 530 bool shrinkToAvoidFloats() const; |
| 531 virtual bool avoidsFloats() const; | 531 virtual bool avoidsFloats() const; |
| 532 | 532 |
| 533 virtual void markForPaginationRelayoutIfNeeded(SubtreeLayoutScope&); | 533 virtual void markForPaginationRelayoutIfNeeded(SubtreeLayoutScope&); |
| 534 | 534 |
| 535 bool isWritingModeRoot() const { return !parent() || parent()->style()->writ
ingMode() != style()->writingMode(); } | 535 bool isWritingModeRoot() const { return !parent() || parent()->style()->writ
ingMode() != style()->writingMode(); } |
| 536 | 536 |
| 537 bool isDeprecatedFlexItem() const { return !isInline() && !isFloatingOrOutOf
FlowPositioned() && parent() && parent()->isDeprecatedFlexibleBox(); } | 537 bool isDeprecatedFlexItem() const { return !isInline() && !isFloatingOrOutOf
FlowPositioned() && parent() && parent()->isDeprecatedFlexibleBox(); } |
| 538 bool isFlexItemIncludingDeprecated() const { return !isInline() && !isFloati
ngOrOutOfFlowPositioned() && parent() && parent()->isFlexibleBoxIncludingDepreca
ted(); } | 538 bool isFlexItemIncludingDeprecated() const { return !isInline() && !isFloati
ngOrOutOfFlowPositioned() && parent() && parent()->isFlexibleBoxIncludingDepreca
ted(); } |
| 539 | 539 |
| 540 bool isGridItem() const { return parent() && parent()->isRenderGrid(); } | 540 bool isGridItem() const { return parent() && parent()->isLayoutGrid(); } |
| 541 | 541 |
| 542 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio
nMode = PositionOnContainingLine) const override; | 542 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio
nMode = PositionOnContainingLine) const override; |
| 543 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode
, LinePositionMode = PositionOnContainingLine) const override; | 543 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode
, LinePositionMode = PositionOnContainingLine) const override; |
| 544 | 544 |
| 545 virtual LayoutUnit offsetLeft() const override; | 545 virtual LayoutUnit offsetLeft() const override; |
| 546 virtual LayoutUnit offsetTop() const override; | 546 virtual LayoutUnit offsetTop() const override; |
| 547 | 547 |
| 548 LayoutPoint flipForWritingModeForChild(const LayoutBox* child, const LayoutP
oint&) const; | 548 LayoutPoint flipForWritingModeForChild(const LayoutBox* child, const LayoutP
oint&) const; |
| 549 LayoutUnit flipForWritingMode(LayoutUnit position) const WARN_UNUSED_RETURN | 549 LayoutUnit flipForWritingMode(LayoutUnit position) const WARN_UNUSED_RETURN |
| 550 { | 550 { |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 845 if (UNLIKELY(inlineBoxWrapper() != 0)) | 845 if (UNLIKELY(inlineBoxWrapper() != 0)) |
| 846 deleteLineBoxWrapper(); | 846 deleteLineBoxWrapper(); |
| 847 } | 847 } |
| 848 | 848 |
| 849 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 849 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 850 } | 850 } |
| 851 | 851 |
| 852 } // namespace blink | 852 } // namespace blink |
| 853 | 853 |
| 854 #endif // LayoutBox_h | 854 #endif // LayoutBox_h |
| OLD | NEW |