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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 | 705 |
706 // End of SVG-specific methods. | 706 // End of SVG-specific methods. |
707 | 707 |
708 bool isAnonymous() const { return m_bitfields.isAnonymous(); } | 708 bool isAnonymous() const { return m_bitfields.isAnonymous(); } |
709 bool isAnonymousBlock() const { | 709 bool isAnonymousBlock() const { |
710 // This function is kept in sync with anonymous block creation conditions in | 710 // This function is kept in sync with anonymous block creation conditions in |
711 // LayoutBlock::createAnonymousBlock(). This includes creating an anonymous | 711 // LayoutBlock::createAnonymousBlock(). This includes creating an anonymous |
712 // LayoutBlock having a BLOCK or BOX display. Other classes such as | 712 // LayoutBlock having a BLOCK or BOX display. Other classes such as |
713 // LayoutTextFragment are not LayoutBlocks and will return false. | 713 // LayoutTextFragment are not LayoutBlocks and will return false. |
714 // See https://bugs.webkit.org/show_bug.cgi?id=56709. | 714 // See https://bugs.webkit.org/show_bug.cgi?id=56709. |
715 return isAnonymous() && (style()->display() == EDisplay::Block || | 715 return isAnonymous() && |
716 style()->display() == EDisplay::WebkitBox) && | 716 (style()->display() == EDisplay::Block || |
| 717 style()->display() == EDisplay::WebkitBox) && |
717 style()->styleType() == PseudoIdNone && isLayoutBlock() && | 718 style()->styleType() == PseudoIdNone && isLayoutBlock() && |
718 !isListMarker() && !isLayoutFlowThread() && | 719 !isListMarker() && !isLayoutFlowThread() && |
719 !isLayoutMultiColumnSet() && !isLayoutFullScreen() && | 720 !isLayoutMultiColumnSet() && !isLayoutFullScreen() && |
720 !isLayoutFullScreenPlaceholder(); | 721 !isLayoutFullScreenPlaceholder(); |
721 } | 722 } |
722 bool isElementContinuation() const { | 723 bool isElementContinuation() const { |
723 return node() && node()->layoutObject() != this; | 724 return node() && node()->layoutObject() != this; |
724 } | 725 } |
725 bool isInlineElementContinuation() const { | 726 bool isInlineElementContinuation() const { |
726 return isElementContinuation() && isInline(); | 727 return isElementContinuation() && isInline(); |
(...skipping 2039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2766 CORE_EXPORT void showLineTree(const blink::LayoutObject*); | 2767 CORE_EXPORT void showLineTree(const blink::LayoutObject*); |
2767 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); | 2768 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); |
2768 // We don't make object2 an optional parameter so that showLayoutTree | 2769 // We don't make object2 an optional parameter so that showLayoutTree |
2769 // can be called from gdb easily. | 2770 // can be called from gdb easily. |
2770 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, | 2771 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, |
2771 const blink::LayoutObject* object2); | 2772 const blink::LayoutObject* object2); |
2772 | 2773 |
2773 #endif | 2774 #endif |
2774 | 2775 |
2775 #endif // LayoutObject_h | 2776 #endif // LayoutObject_h |
OLD | NEW |