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 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 void resetPaginationStrut() | 592 void resetPaginationStrut() |
593 { | 593 { |
594 if (m_rareData) | 594 if (m_rareData) |
595 m_rareData->m_paginationStrut = LayoutUnit(); | 595 m_rareData->m_paginationStrut = LayoutUnit(); |
596 } | 596 } |
597 | 597 |
598 bool hasForcedBreakBefore() const; | 598 bool hasForcedBreakBefore() const; |
599 bool hasForcedBreakAfter() const; | 599 bool hasForcedBreakAfter() const; |
600 | 600 |
601 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec
t* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const ov
erride; | 601 LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObjec
t* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const ov
erride; |
602 void mapToVisibleRectInContainerSpace(const LayoutBoxModelObject* paintInval
idationContainer, LayoutRect&, const PaintInvalidationState*) const override; | 602 void mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, L
ayoutRect&, const PaintInvalidationState*) const override; |
603 virtual void invalidatePaintForOverhangingFloats(bool paintAllDescendants); | 603 virtual void invalidatePaintForOverhangingFloats(bool paintAllDescendants); |
604 | 604 |
605 LayoutUnit containingBlockLogicalHeightForGetComputedStyle() const; | 605 LayoutUnit containingBlockLogicalHeightForGetComputedStyle() const; |
606 | 606 |
607 LayoutUnit containingBlockLogicalWidthForContent() const override; | 607 LayoutUnit containingBlockLogicalWidthForContent() const override; |
608 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType
) const; | 608 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType
) const; |
609 | 609 |
610 LayoutUnit containingBlockAvailableLineWidth() const; | 610 LayoutUnit containingBlockAvailableLineWidth() const; |
611 LayoutUnit perpendicularContainingBlockLogicalHeight() const; | 611 LayoutUnit perpendicularContainingBlockLogicalHeight() const; |
612 | 612 |
(...skipping 178 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 void mapScrollingContentsRectToBoxSpace(LayoutRect&) const; |
802 void applyCachedClipAndScrollOffsetForPaintInvalidation(LayoutRect& paintRec
t) const; | 802 void applyOverflowClip(LayoutRect&) const; |
803 | 803 |
804 virtual bool hasRelativeLogicalWidth() const; | 804 virtual bool hasRelativeLogicalWidth() const; |
805 virtual bool hasRelativeLogicalHeight() const; | 805 virtual bool hasRelativeLogicalHeight() const; |
806 | 806 |
807 bool hasHorizontalLayoutOverflow() const | 807 bool hasHorizontalLayoutOverflow() const |
808 { | 808 { |
809 if (!m_overflow) | 809 if (!m_overflow) |
810 return false; | 810 return false; |
811 | 811 |
812 LayoutRect layoutOverflowRect = m_overflow->layoutOverflowRect(); | 812 LayoutRect layoutOverflowRect = m_overflow->layoutOverflowRect(); |
(...skipping 24 matching lines...) Expand all Loading... |
837 void markShapeOutsideDependentsForLayout() | 837 void markShapeOutsideDependentsForLayout() |
838 { | 838 { |
839 if (isFloating()) | 839 if (isFloating()) |
840 removeFloatingOrPositionedChildFromBlockLists(); | 840 removeFloatingOrPositionedChildFromBlockLists(); |
841 } | 841 } |
842 | 842 |
843 void setIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalHeig
ht) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight; } | 843 void setIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalHeig
ht) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight; } |
844 | 844 |
845 bool canRenderBorderImage() const; | 845 bool canRenderBorderImage() const; |
846 | 846 |
847 void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidationContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
nullptr, const PaintInvalidationState* = nullptr) const override; | 847 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState
&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = nullptr, const Pai
ntInvalidationState* = nullptr) const override; |
848 void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) const ove
rride; | 848 void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) const ove
rride; |
849 | 849 |
850 void clearPreviousPaintInvalidationRects() override; | 850 void clearPreviousPaintInvalidationRects() override; |
851 | 851 |
852 protected: | 852 protected: |
853 void willBeDestroyed() override; | 853 void willBeDestroyed() override; |
854 | 854 |
855 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) overrid
e; | 855 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) overrid
e; |
856 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; | 856 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; |
857 void updateFromStyle() override; | 857 void updateFromStyle() override; |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1067 if (UNLIKELY(inlineBoxWrapper() != nullptr)) | 1067 if (UNLIKELY(inlineBoxWrapper() != nullptr)) |
1068 deleteLineBoxWrapper(); | 1068 deleteLineBoxWrapper(); |
1069 } | 1069 } |
1070 | 1070 |
1071 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 1071 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
1072 } | 1072 } |
1073 | 1073 |
1074 } // namespace blink | 1074 } // namespace blink |
1075 | 1075 |
1076 #endif // LayoutBox_h | 1076 #endif // LayoutBox_h |
OLD | NEW |