| 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. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. |
| 7 * All rights reserved. | 7 * All rights reserved. |
| 8 * Copyright (C) 2009 Google Inc. All rights reserved. | 8 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 731 | 731 |
| 732 bool isFloatingWithNonContainingBlockParent() const { | 732 bool isFloatingWithNonContainingBlockParent() const { |
| 733 return isFloating() && parent() && !parent()->isLayoutBlockFlow(); | 733 return isFloating() && parent() && !parent()->isLayoutBlockFlow(); |
| 734 } | 734 } |
| 735 | 735 |
| 736 // absolute or fixed positioning | 736 // absolute or fixed positioning |
| 737 bool isOutOfFlowPositioned() const { | 737 bool isOutOfFlowPositioned() const { |
| 738 return m_bitfields.isOutOfFlowPositioned(); | 738 return m_bitfields.isOutOfFlowPositioned(); |
| 739 } | 739 } |
| 740 // relative or sticky positioning | 740 // relative or sticky positioning |
| 741 bool isInFlowPositioned() const { | 741 bool isInFlowPositioned() const { return m_bitfields.isInFlowPositioned(); } |
| 742 return m_bitfields.isInFlowPositioned(); | 742 bool isRelPositioned() const { return m_bitfields.isRelPositioned(); } |
| 743 } | 743 bool isStickyPositioned() const { return m_bitfields.isStickyPositioned(); } |
| 744 bool isRelPositioned() const { | |
| 745 return m_bitfields.isRelPositioned(); | |
| 746 } | |
| 747 bool isStickyPositioned() const { | |
| 748 return m_bitfields.isStickyPositioned(); | |
| 749 } | |
| 750 bool isFixedPositioned() const { | 744 bool isFixedPositioned() const { |
| 751 return isOutOfFlowPositioned() && style()->position() == EPosition::kFixed; | 745 return isOutOfFlowPositioned() && style()->position() == EPosition::kFixed; |
| 752 } | 746 } |
| 753 bool isAbsolutePositioned() const { | 747 bool isAbsolutePositioned() const { |
| 754 return isOutOfFlowPositioned() && | 748 return isOutOfFlowPositioned() && |
| 755 style()->position() == EPosition::kAbsolute; | 749 style()->position() == EPosition::kAbsolute; |
| 756 } | 750 } |
| 757 bool isPositioned() const { return m_bitfields.isPositioned(); } | 751 bool isPositioned() const { return m_bitfields.isPositioned(); } |
| 758 | 752 |
| 759 bool isText() const { return m_bitfields.isText(); } | 753 bool isText() const { return m_bitfields.isText(); } |
| (...skipping 2012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2772 CORE_EXPORT void showLineTree(const blink::LayoutObject*); | 2766 CORE_EXPORT void showLineTree(const blink::LayoutObject*); |
| 2773 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); | 2767 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); |
| 2774 // We don't make object2 an optional parameter so that showLayoutTree | 2768 // We don't make object2 an optional parameter so that showLayoutTree |
| 2775 // can be called from gdb easily. | 2769 // can be called from gdb easily. |
| 2776 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, | 2770 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, |
| 2777 const blink::LayoutObject* object2); | 2771 const blink::LayoutObject* object2); |
| 2778 | 2772 |
| 2779 #endif | 2773 #endif |
| 2780 | 2774 |
| 2781 #endif // LayoutObject_h | 2775 #endif // LayoutObject_h |
| OLD | NEW |