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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 void setOverrideContainingBlockContentLogicalHeight(LayoutUnit); | 420 void setOverrideContainingBlockContentLogicalHeight(LayoutUnit); |
421 void clearContainingBlockOverrideSize(); | 421 void clearContainingBlockOverrideSize(); |
422 void clearOverrideContainingBlockContentLogicalHeight(); | 422 void clearOverrideContainingBlockContentLogicalHeight(); |
423 | 423 |
424 LayoutUnit extraInlineOffset() const; | 424 LayoutUnit extraInlineOffset() const; |
425 LayoutUnit extraBlockOffset() const; | 425 LayoutUnit extraBlockOffset() const; |
426 void setExtraInlineOffset(LayoutUnit inlineOffest); | 426 void setExtraInlineOffset(LayoutUnit inlineOffest); |
427 void setExtraBlockOffset(LayoutUnit blockOffest); | 427 void setExtraBlockOffset(LayoutUnit blockOffest); |
428 void clearExtraInlineAndBlockOffests(); | 428 void clearExtraInlineAndBlockOffests(); |
429 | 429 |
430 virtual LayoutSize offsetFromContainer(const LayoutObject*, const LayoutPoin
t&, bool* offsetDependsOnPoint = nullptr) const override; | 430 LayoutSize offsetFromContainer(const LayoutObject*) const override; |
431 | 431 |
432 LayoutUnit adjustBorderBoxLogicalWidthForBoxSizing(LayoutUnit width) const; | 432 LayoutUnit adjustBorderBoxLogicalWidthForBoxSizing(LayoutUnit width) const; |
433 LayoutUnit adjustBorderBoxLogicalHeightForBoxSizing(LayoutUnit height) const
; | 433 LayoutUnit adjustBorderBoxLogicalHeightForBoxSizing(LayoutUnit height) const
; |
434 LayoutUnit adjustContentBoxLogicalWidthForBoxSizing(LayoutUnit width) const; | 434 LayoutUnit adjustContentBoxLogicalWidthForBoxSizing(LayoutUnit width) const; |
435 LayoutUnit adjustContentBoxLogicalHeightForBoxSizing(LayoutUnit height) cons
t; | 435 LayoutUnit adjustContentBoxLogicalHeightForBoxSizing(LayoutUnit height) cons
t; |
436 | 436 |
437 struct ComputedMarginValues { | 437 struct ComputedMarginValues { |
438 ComputedMarginValues() { } | 438 ComputedMarginValues() { } |
439 | 439 |
440 LayoutUnit m_before; | 440 LayoutUnit m_before; |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
unsigned maxDepthToTest) const; | 743 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
unsigned maxDepthToTest) const; |
744 virtual bool computeBackgroundIsKnownToBeObscured() override; | 744 virtual bool computeBackgroundIsKnownToBeObscured() override; |
745 | 745 |
746 void computePositionedLogicalWidth(LogicalExtentComputedValues&) const; | 746 void computePositionedLogicalWidth(LogicalExtentComputedValues&) const; |
747 | 747 |
748 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt
h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; | 748 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt
h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; |
749 LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& logicalHe
ightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) cons
t; | 749 LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& logicalHe
ightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) cons
t; |
750 | 750 |
751 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i
sInlineBlockOrInlineTable(); } | 751 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i
sInlineBlockOrInlineTable(); } |
752 | 752 |
753 virtual void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidati
onContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wa
sFixed = nullptr, const PaintInvalidationState* = nullptr) const override; | |
754 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst override; | 753 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst override; |
755 | 754 |
756 LayoutObject* splitAnonymousBoxesAroundChild(LayoutObject* beforeChild); | 755 LayoutObject* splitAnonymousBoxesAroundChild(LayoutObject* beforeChild); |
757 | 756 |
758 virtual void addLayerHitTestRects(LayerHitTestRects&, const DeprecatedPaintL
ayer* currentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect&
containerRect) const override; | 757 virtual void addLayerHitTestRects(LayerHitTestRects&, const DeprecatedPaintL
ayer* currentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect&
containerRect) const override; |
759 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint&
layerOffset) const override; | 758 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint&
layerOffset) const override; |
760 | 759 |
761 virtual PaintInvalidationReason paintInvalidationReason(const LayoutBoxModel
Object& paintInvalidationContainer, | 760 virtual PaintInvalidationReason paintInvalidationReason(const LayoutBoxModel
Object& paintInvalidationContainer, |
762 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva
lidationContainer, | 761 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva
lidationContainer, |
763 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva
lidationContainer) const override; | 762 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva
lidationContainer) const override; |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
937 if (UNLIKELY(inlineBoxWrapper() != nullptr)) | 936 if (UNLIKELY(inlineBoxWrapper() != nullptr)) |
938 deleteLineBoxWrapper(); | 937 deleteLineBoxWrapper(); |
939 } | 938 } |
940 | 939 |
941 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 940 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
942 } | 941 } |
943 | 942 |
944 } // namespace blink | 943 } // namespace blink |
945 | 944 |
946 #endif // LayoutBox_h | 945 #endif // LayoutBox_h |
OLD | NEW |