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