| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
| 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 bool isElementContinuation() const { return node() && node()->layoutObject()
!= this; } | 658 bool isElementContinuation() const { return node() && node()->layoutObject()
!= this; } |
| 659 bool isInlineElementContinuation() const { return isElementContinuation() &&
isInline(); } | 659 bool isInlineElementContinuation() const { return isElementContinuation() &&
isInline(); } |
| 660 virtual LayoutBoxModelObject* virtualContinuation() const { return nullptr;
} | 660 virtual LayoutBoxModelObject* virtualContinuation() const { return nullptr;
} |
| 661 | 661 |
| 662 bool isFloating() const { return m_bitfields.floating(); } | 662 bool isFloating() const { return m_bitfields.floating(); } |
| 663 | 663 |
| 664 bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione
d(); } // absolute or fixed positioning | 664 bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione
d(); } // absolute or fixed positioning |
| 665 bool isInFlowPositioned() const { return m_bitfields.isInFlowPositioned(); }
// relative or sticky positioning | 665 bool isInFlowPositioned() const { return m_bitfields.isInFlowPositioned(); }
// relative or sticky positioning |
| 666 bool isRelPositioned() const { return m_bitfields.isRelPositioned(); } // re
lative positioning | 666 bool isRelPositioned() const { return m_bitfields.isRelPositioned(); } // re
lative positioning |
| 667 bool isStickyPositioned() const { return m_bitfields.isStickyPositioned(); }
// sticky positioning | 667 bool isStickyPositioned() const { return m_bitfields.isStickyPositioned(); }
// sticky positioning |
| 668 bool isFixedPositioned() const { return isOutOfFlowPositioned() && style()->
position() == FixedPosition; } // fixed positioning | |
| 669 bool isPositioned() const { return m_bitfields.isPositioned(); } | 668 bool isPositioned() const { return m_bitfields.isPositioned(); } |
| 670 | 669 |
| 671 bool isText() const { return m_bitfields.isText(); } | 670 bool isText() const { return m_bitfields.isText(); } |
| 672 bool isBox() const { return m_bitfields.isBox(); } | 671 bool isBox() const { return m_bitfields.isBox(); } |
| 673 bool isInline() const { return m_bitfields.isInline(); } // inline object | 672 bool isInline() const { return m_bitfields.isInline(); } // inline object |
| 674 bool isDragging() const { return m_bitfields.isDragging(); } | 673 bool isDragging() const { return m_bitfields.isDragging(); } |
| 675 bool isAtomicInlineLevel() const { return m_bitfields.isAtomicInlineLevel();
} | 674 bool isAtomicInlineLevel() const { return m_bitfields.isAtomicInlineLevel();
} |
| 676 bool isHorizontalWritingMode() const { return m_bitfields.horizontalWritingM
ode(); } | 675 bool isHorizontalWritingMode() const { return m_bitfields.horizontalWritingM
ode(); } |
| 677 bool hasFlippedBlocksWritingMode() const | 676 bool hasFlippedBlocksWritingMode() const |
| 678 { | 677 { |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 811 // If |ancestor| and |ancestorSkipped| are not null, on return *ancestorSkip
ped | 810 // If |ancestor| and |ancestorSkipped| are not null, on return *ancestorSkip
ped |
| 812 // is true if the layoutObject returned is an ancestor of |ancestor|. | 811 // is true if the layoutObject returned is an ancestor of |ancestor|. |
| 813 LayoutObject* container(const LayoutBoxModelObject* ancestor = nullptr, bool
* ancestorSkipped = nullptr, bool* filterOrReflectionSkipped = nullptr) const; | 812 LayoutObject* container(const LayoutBoxModelObject* ancestor = nullptr, bool
* ancestorSkipped = nullptr, bool* filterOrReflectionSkipped = nullptr) const; |
| 814 // Finds the container as if this object is fixed-position. | 813 // Finds the container as if this object is fixed-position. |
| 815 LayoutBlock* containerForFixedPosition(const LayoutBoxModelObject* ancestor
= nullptr, bool* ancestorSkipped = nullptr, bool* filterOrReflectionSkipped = nu
llptr) const; | 814 LayoutBlock* containerForFixedPosition(const LayoutBoxModelObject* ancestor
= nullptr, bool* ancestorSkipped = nullptr, bool* filterOrReflectionSkipped = nu
llptr) const; |
| 816 // Finds the containing block as if this object is absolute-position. | 815 // Finds the containing block as if this object is absolute-position. |
| 817 LayoutBlock* containingBlockForAbsolutePosition() const; | 816 LayoutBlock* containingBlockForAbsolutePosition() const; |
| 818 | 817 |
| 819 virtual LayoutObject* hoverAncestor() const { return parent(); } | 818 virtual LayoutObject* hoverAncestor() const { return parent(); } |
| 820 | 819 |
| 821 Element* offsetParent(const Element* = nullptr) const; | 820 Element* offsetParent() const; |
| 822 | 821 |
| 823 void markContainerChainForLayout(bool scheduleRelayout = true, SubtreeLayout
Scope* = nullptr); | 822 void markContainerChainForLayout(bool scheduleRelayout = true, SubtreeLayout
Scope* = nullptr); |
| 824 void setNeedsLayout(LayoutInvalidationReasonForTracing, MarkingBehavior = Ma
rkContainerChain, SubtreeLayoutScope* = nullptr); | 823 void setNeedsLayout(LayoutInvalidationReasonForTracing, MarkingBehavior = Ma
rkContainerChain, SubtreeLayoutScope* = nullptr); |
| 825 void setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReasonForTraci
ng, MarkingBehavior = MarkContainerChain, SubtreeLayoutScope* = nullptr); | 824 void setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReasonForTraci
ng, MarkingBehavior = MarkContainerChain, SubtreeLayoutScope* = nullptr); |
| 826 void clearNeedsLayout(); | 825 void clearNeedsLayout(); |
| 827 void setChildNeedsLayout(MarkingBehavior = MarkContainerChain, SubtreeLayout
Scope* = nullptr); | 826 void setChildNeedsLayout(MarkingBehavior = MarkContainerChain, SubtreeLayout
Scope* = nullptr); |
| 828 void setNeedsPositionedMovementLayout(); | 827 void setNeedsPositionedMovementLayout(); |
| 829 void setPreferredLogicalWidthsDirty(MarkingBehavior = MarkContainerChain); | 828 void setPreferredLogicalWidthsDirty(MarkingBehavior = MarkContainerChain); |
| 830 void clearPreferredLogicalWidthsDirty(); | 829 void clearPreferredLogicalWidthsDirty(); |
| 831 | 830 |
| (...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2187 void showTree(const blink::LayoutObject*); | 2186 void showTree(const blink::LayoutObject*); |
| 2188 void showLineTree(const blink::LayoutObject*); | 2187 void showLineTree(const blink::LayoutObject*); |
| 2189 void showLayoutTree(const blink::LayoutObject* object1); | 2188 void showLayoutTree(const blink::LayoutObject* object1); |
| 2190 // We don't make object2 an optional parameter so that showLayoutTree | 2189 // We don't make object2 an optional parameter so that showLayoutTree |
| 2191 // can be called from gdb easily. | 2190 // can be called from gdb easily. |
| 2192 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 2191 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
| 2193 | 2192 |
| 2194 #endif | 2193 #endif |
| 2195 | 2194 |
| 2196 #endif // LayoutObject_h | 2195 #endif // LayoutObject_h |
| OLD | NEW |