| 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 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 LayoutRect logicalLayoutOverflowRectForPropagation(const ComputedStyle&) con
st; | 791 LayoutRect logicalLayoutOverflowRectForPropagation(const ComputedStyle&) con
st; |
| 792 LayoutRect layoutOverflowRectForPropagation(const ComputedStyle&) const; | 792 LayoutRect layoutOverflowRectForPropagation(const ComputedStyle&) const; |
| 793 | 793 |
| 794 bool hasOverflowModel() const { return m_overflow; } | 794 bool hasOverflowModel() const { return m_overflow; } |
| 795 bool hasVisualOverflow() const { return m_overflow && !borderBoxRect().conta
ins(m_overflow->visualOverflowRect()); } | 795 bool hasVisualOverflow() const { return m_overflow && !borderBoxRect().conta
ins(m_overflow->visualOverflowRect()); } |
| 796 | 796 |
| 797 virtual bool needsPreferredWidthsRecalculation() const; | 797 virtual bool needsPreferredWidthsRecalculation() const; |
| 798 virtual void computeIntrinsicRatioInformation(FloatSize& /* intrinsicSize */
, double& /* intrinsicRatio */) const { } | 798 virtual void computeIntrinsicRatioInformation(FloatSize& /* intrinsicSize */
, double& /* intrinsicRatio */) const { } |
| 799 | 799 |
| 800 IntSize scrolledContentOffset() const; | 800 IntSize scrolledContentOffset() const; |
| 801 void applyCachedScrollOffsetForPaintInvalidation(LayoutRect& paintRect) cons
t; | 801 |
| 802 void applyCachedClipAndScrollOffsetForPaintInvalidation(LayoutRect& paintRec
t) const; | 802 // Precondition: this object has overflow clip. |
| 803 // Applies scroll offset to map the rect from scrolling contents space to th
e space of this object. |
| 804 // If this object is not a paint invalidation container, overflow clip is al
so applied. |
| 805 void applyOverflowClipAndScrollOffsetForPaintInvalidationIfNeeded(LayoutRect
&) const; |
| 803 | 806 |
| 804 virtual bool hasRelativeLogicalWidth() const; | 807 virtual bool hasRelativeLogicalWidth() const; |
| 805 virtual bool hasRelativeLogicalHeight() const; | 808 virtual bool hasRelativeLogicalHeight() const; |
| 806 | 809 |
| 807 bool hasHorizontalLayoutOverflow() const | 810 bool hasHorizontalLayoutOverflow() const |
| 808 { | 811 { |
| 809 if (!m_overflow) | 812 if (!m_overflow) |
| 810 return false; | 813 return false; |
| 811 | 814 |
| 812 LayoutRect layoutOverflowRect = m_overflow->layoutOverflowRect(); | 815 LayoutRect layoutOverflowRect = m_overflow->layoutOverflowRect(); |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1065 if (UNLIKELY(inlineBoxWrapper() != nullptr)) | 1068 if (UNLIKELY(inlineBoxWrapper() != nullptr)) |
| 1066 deleteLineBoxWrapper(); | 1069 deleteLineBoxWrapper(); |
| 1067 } | 1070 } |
| 1068 | 1071 |
| 1069 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 1072 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 1070 } | 1073 } |
| 1071 | 1074 |
| 1072 } // namespace blink | 1075 } // namespace blink |
| 1073 | 1076 |
| 1074 #endif // LayoutBox_h | 1077 #endif // LayoutBox_h |
| OLD | NEW |