| 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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 bool isLayoutNGBlockFlow() const { return isOfType(LayoutObjectNGBlockFlow); } | 511 bool isLayoutNGBlockFlow() const { return isOfType(LayoutObjectNGBlockFlow); } |
| 512 bool isLayoutTableCol() const { return isOfType(LayoutObjectLayoutTableCol); } | 512 bool isLayoutTableCol() const { return isOfType(LayoutObjectLayoutTableCol); } |
| 513 bool isListBox() const { return isOfType(LayoutObjectListBox); } | 513 bool isListBox() const { return isOfType(LayoutObjectListBox); } |
| 514 bool isListItem() const { return isOfType(LayoutObjectListItem); } | 514 bool isListItem() const { return isOfType(LayoutObjectListItem); } |
| 515 bool isListMarker() const { return isOfType(LayoutObjectListMarker); } | 515 bool isListMarker() const { return isOfType(LayoutObjectListMarker); } |
| 516 bool isMedia() const { return isOfType(LayoutObjectMedia); } | 516 bool isMedia() const { return isOfType(LayoutObjectMedia); } |
| 517 bool isMenuList() const { return isOfType(LayoutObjectMenuList); } | 517 bool isMenuList() const { return isOfType(LayoutObjectMenuList); } |
| 518 bool isProgress() const { return isOfType(LayoutObjectProgress); } | 518 bool isProgress() const { return isOfType(LayoutObjectProgress); } |
| 519 bool isQuote() const { return isOfType(LayoutObjectQuote); } | 519 bool isQuote() const { return isOfType(LayoutObjectQuote); } |
| 520 bool isLayoutButton() const { return isOfType(LayoutObjectLayoutButton); } | 520 bool isLayoutButton() const { return isOfType(LayoutObjectLayoutButton); } |
| 521 bool isLayoutFullScreen() const { | |
| 522 return isOfType(LayoutObjectLayoutFullScreen); | |
| 523 } | |
| 524 bool isLayoutFullScreenPlaceholder() const { | |
| 525 return isOfType(LayoutObjectLayoutFullScreenPlaceholder); | |
| 526 } | |
| 527 bool isLayoutGrid() const { return isOfType(LayoutObjectLayoutGrid); } | 521 bool isLayoutGrid() const { return isOfType(LayoutObjectLayoutGrid); } |
| 528 bool isLayoutIFrame() const { return isOfType(LayoutObjectLayoutIFrame); } | 522 bool isLayoutIFrame() const { return isOfType(LayoutObjectLayoutIFrame); } |
| 529 bool isLayoutImage() const { return isOfType(LayoutObjectLayoutImage); } | 523 bool isLayoutImage() const { return isOfType(LayoutObjectLayoutImage); } |
| 530 bool isLayoutMultiColumnSet() const { | 524 bool isLayoutMultiColumnSet() const { |
| 531 return isOfType(LayoutObjectLayoutMultiColumnSet); | 525 return isOfType(LayoutObjectLayoutMultiColumnSet); |
| 532 } | 526 } |
| 533 bool isLayoutMultiColumnSpannerPlaceholder() const { | 527 bool isLayoutMultiColumnSpannerPlaceholder() const { |
| 534 return isOfType(LayoutObjectLayoutMultiColumnSpannerPlaceholder); | 528 return isOfType(LayoutObjectLayoutMultiColumnSpannerPlaceholder); |
| 535 } | 529 } |
| 536 bool isLayoutScrollbarPart() const { | 530 bool isLayoutScrollbarPart() const { |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 bool isAnonymousBlock() const { | 709 bool isAnonymousBlock() const { |
| 716 // 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 |
| 717 // LayoutBlock::createAnonymousBlock(). This includes creating an anonymous | 711 // LayoutBlock::createAnonymousBlock(). This includes creating an anonymous |
| 718 // LayoutBlock having a BLOCK or BOX display. Other classes such as | 712 // LayoutBlock having a BLOCK or BOX display. Other classes such as |
| 719 // LayoutTextFragment are not LayoutBlocks and will return false. | 713 // LayoutTextFragment are not LayoutBlocks and will return false. |
| 720 // See https://bugs.webkit.org/show_bug.cgi?id=56709. | 714 // See https://bugs.webkit.org/show_bug.cgi?id=56709. |
| 721 return isAnonymous() && (style()->display() == EDisplay::Block || | 715 return isAnonymous() && (style()->display() == EDisplay::Block || |
| 722 style()->display() == EDisplay::Box) && | 716 style()->display() == EDisplay::Box) && |
| 723 style()->styleType() == PseudoIdNone && isLayoutBlock() && | 717 style()->styleType() == PseudoIdNone && isLayoutBlock() && |
| 724 !isListMarker() && !isLayoutFlowThread() && | 718 !isListMarker() && !isLayoutFlowThread() && |
| 725 !isLayoutMultiColumnSet() && !isLayoutFullScreen() && | 719 !isLayoutMultiColumnSet(); |
| 726 !isLayoutFullScreenPlaceholder(); | |
| 727 } | 720 } |
| 728 bool isElementContinuation() const { | 721 bool isElementContinuation() const { |
| 729 return node() && node()->layoutObject() != this; | 722 return node() && node()->layoutObject() != this; |
| 730 } | 723 } |
| 731 bool isInlineElementContinuation() const { | 724 bool isInlineElementContinuation() const { |
| 732 return isElementContinuation() && isInline(); | 725 return isElementContinuation() && isInline(); |
| 733 } | 726 } |
| 734 virtual LayoutBoxModelObject* virtualContinuation() const { return nullptr; } | 727 virtual LayoutBoxModelObject* virtualContinuation() const { return nullptr; } |
| 735 | 728 |
| 736 bool isFloating() const { return m_bitfields.floating(); } | 729 bool isFloating() const { return m_bitfields.floating(); } |
| (...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1791 LayoutObjectListBox, | 1784 LayoutObjectListBox, |
| 1792 LayoutObjectListItem, | 1785 LayoutObjectListItem, |
| 1793 LayoutObjectListMarker, | 1786 LayoutObjectListMarker, |
| 1794 LayoutObjectMedia, | 1787 LayoutObjectMedia, |
| 1795 LayoutObjectMenuList, | 1788 LayoutObjectMenuList, |
| 1796 LayoutObjectNGBlockFlow, | 1789 LayoutObjectNGBlockFlow, |
| 1797 LayoutObjectProgress, | 1790 LayoutObjectProgress, |
| 1798 LayoutObjectQuote, | 1791 LayoutObjectQuote, |
| 1799 LayoutObjectLayoutButton, | 1792 LayoutObjectLayoutButton, |
| 1800 LayoutObjectLayoutFlowThread, | 1793 LayoutObjectLayoutFlowThread, |
| 1801 LayoutObjectLayoutFullScreen, | |
| 1802 LayoutObjectLayoutFullScreenPlaceholder, | |
| 1803 LayoutObjectLayoutGrid, | 1794 LayoutObjectLayoutGrid, |
| 1804 LayoutObjectLayoutIFrame, | 1795 LayoutObjectLayoutIFrame, |
| 1805 LayoutObjectLayoutImage, | 1796 LayoutObjectLayoutImage, |
| 1806 LayoutObjectLayoutInline, | 1797 LayoutObjectLayoutInline, |
| 1807 LayoutObjectLayoutMultiColumnSet, | 1798 LayoutObjectLayoutMultiColumnSet, |
| 1808 LayoutObjectLayoutMultiColumnSpannerPlaceholder, | 1799 LayoutObjectLayoutMultiColumnSpannerPlaceholder, |
| 1809 LayoutObjectLayoutPart, | 1800 LayoutObjectLayoutPart, |
| 1810 LayoutObjectLayoutScrollbarPart, | 1801 LayoutObjectLayoutScrollbarPart, |
| 1811 LayoutObjectLayoutView, | 1802 LayoutObjectLayoutView, |
| 1812 LayoutObjectRuby, | 1803 LayoutObjectRuby, |
| (...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2591 CORE_EXPORT void showLineTree(const blink::LayoutObject*); | 2582 CORE_EXPORT void showLineTree(const blink::LayoutObject*); |
| 2592 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); | 2583 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); |
| 2593 // We don't make object2 an optional parameter so that showLayoutTree | 2584 // We don't make object2 an optional parameter so that showLayoutTree |
| 2594 // can be called from gdb easily. | 2585 // can be called from gdb easily. |
| 2595 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, | 2586 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, |
| 2596 const blink::LayoutObject* object2); | 2587 const blink::LayoutObject* object2); |
| 2597 | 2588 |
| 2598 #endif | 2589 #endif |
| 2599 | 2590 |
| 2600 #endif // LayoutObject_h | 2591 #endif // LayoutObject_h |
| OLD | NEW |