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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
637 // rest of the layout tree will move to a similar model. | 637 // rest of the layout tree will move to a similar model. |
638 virtual bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParen t, HitTestAction); | 638 virtual bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParen t, HitTestAction); |
639 | 639 |
640 // End of SVG-specific methods. | 640 // End of SVG-specific methods. |
641 | 641 |
642 bool isAnonymous() const { return m_bitfields.isAnonymous(); } | 642 bool isAnonymous() const { return m_bitfields.isAnonymous(); } |
643 bool isAnonymousBlock() const | 643 bool isAnonymousBlock() const |
644 { | 644 { |
645 // This function is kept in sync with anonymous block creation condition s in | 645 // This function is kept in sync with anonymous block creation condition s in |
646 // LayoutBlock::createAnonymousBlock(). This includes creating an anonym ous | 646 // LayoutBlock::createAnonymousBlock(). This includes creating an anonym ous |
647 // LayoutBlock having a BLOCK or BOX display. Other classes such as Layo utTextFragment | 647 // LayoutBlock having a EDisplay::Block or EDisplay::Box display. Other classes such as LayoutTextFragment |
alancutter (OOO until 2018)
2016/09/26 04:23:47
This probably should not change.
| |
648 // are not LayoutBlocks and will return false. See https://bugs.webkit.o rg/show_bug.cgi?id=56709. | 648 // are not LayoutBlocks and will return false. See https://bugs.webkit.o rg/show_bug.cgi?id=56709. |
649 return isAnonymous() && (style()->display() == BLOCK || style()->display () == BOX) && style()->styleType() == PseudoIdNone && isLayoutBlock() && !isList Marker() && !isLayoutFlowThread() && !isLayoutMultiColumnSet() | 649 return isAnonymous() && (style()->display() == EDisplay::Block || style( )->display() == EDisplay::Box) && style()->styleType() == PseudoIdNone && isLayo utBlock() && !isListMarker() && !isLayoutFlowThread() && !isLayoutMultiColumnSet () |
650 && !isLayoutFullScreen() | 650 && !isLayoutFullScreen() |
651 && !isLayoutFullScreenPlaceholder(); | 651 && !isLayoutFullScreenPlaceholder(); |
652 } | 652 } |
653 bool isElementContinuation() const { return node() && node()->layoutObject() != this; } | 653 bool isElementContinuation() const { return node() && node()->layoutObject() != this; } |
654 bool isInlineElementContinuation() const { return isElementContinuation() && isInline(); } | 654 bool isInlineElementContinuation() const { return isElementContinuation() && isInline(); } |
655 virtual LayoutBoxModelObject* virtualContinuation() const { return nullptr; } | 655 virtual LayoutBoxModelObject* virtualContinuation() const { return nullptr; } |
656 | 656 |
657 bool isFloating() const { return m_bitfields.floating(); } | 657 bool isFloating() const { return m_bitfields.floating(); } |
658 | 658 |
659 bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione d(); } // absolute or fixed positioning | 659 bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione d(); } // absolute or fixed positioning |
(...skipping 1474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2134 void showTree(const blink::LayoutObject*); | 2134 void showTree(const blink::LayoutObject*); |
2135 void showLineTree(const blink::LayoutObject*); | 2135 void showLineTree(const blink::LayoutObject*); |
2136 void showLayoutTree(const blink::LayoutObject* object1); | 2136 void showLayoutTree(const blink::LayoutObject* object1); |
2137 // We don't make object2 an optional parameter so that showLayoutTree | 2137 // We don't make object2 an optional parameter so that showLayoutTree |
2138 // can be called from gdb easily. | 2138 // can be called from gdb easily. |
2139 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); | 2139 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); |
2140 | 2140 |
2141 #endif | 2141 #endif |
2142 | 2142 |
2143 #endif // LayoutObject_h | 2143 #endif // LayoutObject_h |
OLD | NEW |