| 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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 bool isFrameSet() const { return isOfType(LayoutObjectFrameSet); } | 492 bool isFrameSet() const { return isOfType(LayoutObjectFrameSet); } |
| 493 bool isLayoutTableCol() const { return isOfType(LayoutObjectLayoutTableCol);
} | 493 bool isLayoutTableCol() const { return isOfType(LayoutObjectLayoutTableCol);
} |
| 494 bool isListBox() const { return isOfType(LayoutObjectListBox); } | 494 bool isListBox() const { return isOfType(LayoutObjectListBox); } |
| 495 bool isListItem() const { return isOfType(LayoutObjectListItem); } | 495 bool isListItem() const { return isOfType(LayoutObjectListItem); } |
| 496 bool isListMarker() const { return isOfType(LayoutObjectListMarker); } | 496 bool isListMarker() const { return isOfType(LayoutObjectListMarker); } |
| 497 bool isMedia() const { return isOfType(LayoutObjectMedia); } | 497 bool isMedia() const { return isOfType(LayoutObjectMedia); } |
| 498 bool isMenuList() const { return isOfType(LayoutObjectMenuList); } | 498 bool isMenuList() const { return isOfType(LayoutObjectMenuList); } |
| 499 bool isProgress() const { return isOfType(LayoutObjectProgress); } | 499 bool isProgress() const { return isOfType(LayoutObjectProgress); } |
| 500 bool isQuote() const { return isOfType(LayoutObjectQuote); } | 500 bool isQuote() const { return isOfType(LayoutObjectQuote); } |
| 501 bool isLayoutButton() const { return isOfType(LayoutObjectLayoutButton); } | 501 bool isLayoutButton() const { return isOfType(LayoutObjectLayoutButton); } |
| 502 bool isLayoutFullScreen() const { return isOfType(LayoutObjectLayoutFullScre
en); } | |
| 503 bool isLayoutFullScreenPlaceholder() const { return isOfType(LayoutObjectLay
outFullScreenPlaceholder); } | |
| 504 bool isLayoutGrid() const { return isOfType(LayoutObjectLayoutGrid); } | 502 bool isLayoutGrid() const { return isOfType(LayoutObjectLayoutGrid); } |
| 505 bool isLayoutIFrame() const { return isOfType(LayoutObjectLayoutIFrame); } | 503 bool isLayoutIFrame() const { return isOfType(LayoutObjectLayoutIFrame); } |
| 506 bool isLayoutImage() const { return isOfType(LayoutObjectLayoutImage); } | 504 bool isLayoutImage() const { return isOfType(LayoutObjectLayoutImage); } |
| 507 bool isLayoutMultiColumnSet() const { return isOfType(LayoutObjectLayoutMult
iColumnSet); } | 505 bool isLayoutMultiColumnSet() const { return isOfType(LayoutObjectLayoutMult
iColumnSet); } |
| 508 bool isLayoutMultiColumnSpannerPlaceholder() const { return isOfType(LayoutO
bjectLayoutMultiColumnSpannerPlaceholder); } | 506 bool isLayoutMultiColumnSpannerPlaceholder() const { return isOfType(LayoutO
bjectLayoutMultiColumnSpannerPlaceholder); } |
| 509 bool isLayoutScrollbarPart() const { return isOfType(LayoutObjectLayoutScrol
lbarPart); } | 507 bool isLayoutScrollbarPart() const { return isOfType(LayoutObjectLayoutScrol
lbarPart); } |
| 510 bool isLayoutView() const { return isOfType(LayoutObjectLayoutView); } | 508 bool isLayoutView() const { return isOfType(LayoutObjectLayoutView); } |
| 511 bool isReplica() const { return isOfType(LayoutObjectReplica); } | 509 bool isReplica() const { return isOfType(LayoutObjectReplica); } |
| 512 bool isRuby() const { return isOfType(LayoutObjectRuby); } | 510 bool isRuby() const { return isOfType(LayoutObjectRuby); } |
| 513 bool isRubyBase() const { return isOfType(LayoutObjectRubyBase); } | 511 bool isRubyBase() const { return isOfType(LayoutObjectRubyBase); } |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 | 640 |
| 643 // End of SVG-specific methods. | 641 // End of SVG-specific methods. |
| 644 | 642 |
| 645 bool isAnonymous() const { return m_bitfields.isAnonymous(); } | 643 bool isAnonymous() const { return m_bitfields.isAnonymous(); } |
| 646 bool isAnonymousBlock() const | 644 bool isAnonymousBlock() const |
| 647 { | 645 { |
| 648 // This function is kept in sync with anonymous block creation condition
s in | 646 // This function is kept in sync with anonymous block creation condition
s in |
| 649 // LayoutBlock::createAnonymousBlock(). This includes creating an anonym
ous | 647 // LayoutBlock::createAnonymousBlock(). This includes creating an anonym
ous |
| 650 // LayoutBlock having a BLOCK or BOX display. Other classes such as Layo
utTextFragment | 648 // LayoutBlock having a BLOCK or BOX display. Other classes such as Layo
utTextFragment |
| 651 // are not LayoutBlocks and will return false. See https://bugs.webkit.o
rg/show_bug.cgi?id=56709. | 649 // are not LayoutBlocks and will return false. See https://bugs.webkit.o
rg/show_bug.cgi?id=56709. |
| 652 return isAnonymous() && (style()->display() == BLOCK || style()->display
() == BOX) && style()->styleType() == PseudoIdNone && isLayoutBlock() && !isList
Marker() && !isLayoutFlowThread() && !isLayoutMultiColumnSet() | 650 return isAnonymous() && (style()->display() == BLOCK || style()->display
() == BOX) && style()->styleType() == PseudoIdNone && isLayoutBlock() && !isList
Marker() && !isLayoutFlowThread() && !isLayoutMultiColumnSet(); |
| 653 && !isLayoutFullScreen() | |
| 654 && !isLayoutFullScreenPlaceholder(); | |
| 655 } | 651 } |
| 656 bool isElementContinuation() const { return node() && node()->layoutObject()
!= this; } | 652 bool isElementContinuation() const { return node() && node()->layoutObject()
!= this; } |
| 657 bool isInlineElementContinuation() const { return isElementContinuation() &&
isInline(); } | 653 bool isInlineElementContinuation() const { return isElementContinuation() &&
isInline(); } |
| 658 virtual LayoutBoxModelObject* virtualContinuation() const { return nullptr;
} | 654 virtual LayoutBoxModelObject* virtualContinuation() const { return nullptr;
} |
| 659 | 655 |
| 660 bool isFloating() const { return m_bitfields.floating(); } | 656 bool isFloating() const { return m_bitfields.floating(); } |
| 661 | 657 |
| 662 bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione
d(); } // absolute or fixed positioning | 658 bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione
d(); } // absolute or fixed positioning |
| 663 bool isInFlowPositioned() const { return m_bitfields.isInFlowPositioned(); }
// relative or sticky positioning | 659 bool isInFlowPositioned() const { return m_bitfields.isInFlowPositioned(); }
// relative or sticky positioning |
| 664 bool isRelPositioned() const { return m_bitfields.isRelPositioned(); } // re
lative positioning | 660 bool isRelPositioned() const { return m_bitfields.isRelPositioned(); } // re
lative positioning |
| (...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1418 LayoutObjectLayoutTableCol, | 1414 LayoutObjectLayoutTableCol, |
| 1419 LayoutObjectListBox, | 1415 LayoutObjectListBox, |
| 1420 LayoutObjectListItem, | 1416 LayoutObjectListItem, |
| 1421 LayoutObjectListMarker, | 1417 LayoutObjectListMarker, |
| 1422 LayoutObjectMedia, | 1418 LayoutObjectMedia, |
| 1423 LayoutObjectMenuList, | 1419 LayoutObjectMenuList, |
| 1424 LayoutObjectProgress, | 1420 LayoutObjectProgress, |
| 1425 LayoutObjectQuote, | 1421 LayoutObjectQuote, |
| 1426 LayoutObjectLayoutButton, | 1422 LayoutObjectLayoutButton, |
| 1427 LayoutObjectLayoutFlowThread, | 1423 LayoutObjectLayoutFlowThread, |
| 1428 LayoutObjectLayoutFullScreen, | |
| 1429 LayoutObjectLayoutFullScreenPlaceholder, | |
| 1430 LayoutObjectLayoutGrid, | 1424 LayoutObjectLayoutGrid, |
| 1431 LayoutObjectLayoutIFrame, | 1425 LayoutObjectLayoutIFrame, |
| 1432 LayoutObjectLayoutImage, | 1426 LayoutObjectLayoutImage, |
| 1433 LayoutObjectLayoutInline, | 1427 LayoutObjectLayoutInline, |
| 1434 LayoutObjectLayoutMultiColumnSet, | 1428 LayoutObjectLayoutMultiColumnSet, |
| 1435 LayoutObjectLayoutMultiColumnSpannerPlaceholder, | 1429 LayoutObjectLayoutMultiColumnSpannerPlaceholder, |
| 1436 LayoutObjectLayoutPart, | 1430 LayoutObjectLayoutPart, |
| 1437 LayoutObjectLayoutScrollbarPart, | 1431 LayoutObjectLayoutScrollbarPart, |
| 1438 LayoutObjectLayoutView, | 1432 LayoutObjectLayoutView, |
| 1439 LayoutObjectReplica, | 1433 LayoutObjectReplica, |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2180 void showTree(const blink::LayoutObject*); | 2174 void showTree(const blink::LayoutObject*); |
| 2181 void showLineTree(const blink::LayoutObject*); | 2175 void showLineTree(const blink::LayoutObject*); |
| 2182 void showLayoutTree(const blink::LayoutObject* object1); | 2176 void showLayoutTree(const blink::LayoutObject* object1); |
| 2183 // We don't make object2 an optional parameter so that showLayoutTree | 2177 // We don't make object2 an optional parameter so that showLayoutTree |
| 2184 // can be called from gdb easily. | 2178 // can be called from gdb easily. |
| 2185 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 2179 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
| 2186 | 2180 |
| 2187 #endif | 2181 #endif |
| 2188 | 2182 |
| 2189 #endif // LayoutObject_h | 2183 #endif // LayoutObject_h |
| OLD | NEW |