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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 bool isAnonymousBlock() const | 496 bool isAnonymousBlock() const |
497 { | 497 { |
498 // This function is kept in sync with anonymous block creation condition
s in | 498 // This function is kept in sync with anonymous block creation condition
s in |
499 // LayoutBlock::createAnonymousBlock(). This includes creating an anonym
ous | 499 // LayoutBlock::createAnonymousBlock(). This includes creating an anonym
ous |
500 // LayoutBlock having a BLOCK or BOX display. Other classes such as Layo
utTextFragment | 500 // LayoutBlock having a BLOCK or BOX display. Other classes such as Layo
utTextFragment |
501 // are not LayoutBlocks and will return false. See https://bugs.webkit.o
rg/show_bug.cgi?id=56709. | 501 // are not LayoutBlocks and will return false. See https://bugs.webkit.o
rg/show_bug.cgi?id=56709. |
502 return isAnonymous() && (style()->display() == BLOCK || style()->display
() == BOX) && style()->styleType() == NOPSEUDO && isLayoutBlock() && !isListMark
er() && !isLayoutFlowThread() && !isLayoutMultiColumnSet() | 502 return isAnonymous() && (style()->display() == BLOCK || style()->display
() == BOX) && style()->styleType() == NOPSEUDO && isLayoutBlock() && !isListMark
er() && !isLayoutFlowThread() && !isLayoutMultiColumnSet() |
503 && !isLayoutFullScreen() | 503 && !isLayoutFullScreen() |
504 && !isLayoutFullScreenPlaceholder(); | 504 && !isLayoutFullScreenPlaceholder(); |
505 } | 505 } |
506 bool isAnonymousColumnsBlock() const { return style()->specifiesColumns() &&
isAnonymousBlock(); } | |
507 bool isAnonymousColumnSpanBlock() const { return style()->columnSpan() && is
AnonymousBlock(); } | |
508 bool isElementContinuation() const { return node() && node()->layoutObject()
!= this; } | 506 bool isElementContinuation() const { return node() && node()->layoutObject()
!= this; } |
509 bool isInlineElementContinuation() const { return isElementContinuation() &&
isInline(); } | 507 bool isInlineElementContinuation() const { return isElementContinuation() &&
isInline(); } |
510 virtual LayoutBoxModelObject* virtualContinuation() const { return 0; } | 508 virtual LayoutBoxModelObject* virtualContinuation() const { return 0; } |
511 | 509 |
512 bool isFloating() const { return m_bitfields.floating(); } | 510 bool isFloating() const { return m_bitfields.floating(); } |
513 | 511 |
514 bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione
d(); } // absolute or fixed positioning | 512 bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione
d(); } // absolute or fixed positioning |
515 bool isRelPositioned() const { return m_bitfields.isRelPositioned(); } // re
lative positioning | 513 bool isRelPositioned() const { return m_bitfields.isRelPositioned(); } // re
lative positioning |
516 bool isPositioned() const { return m_bitfields.isPositioned(); } | 514 bool isPositioned() const { return m_bitfields.isPositioned(); } |
517 | 515 |
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1664 void showTree(const blink::LayoutObject*); | 1662 void showTree(const blink::LayoutObject*); |
1665 void showLineTree(const blink::LayoutObject*); | 1663 void showLineTree(const blink::LayoutObject*); |
1666 void showLayoutTree(const blink::LayoutObject* object1); | 1664 void showLayoutTree(const blink::LayoutObject* object1); |
1667 // We don't make object2 an optional parameter so that showLayoutTree | 1665 // We don't make object2 an optional parameter so that showLayoutTree |
1668 // can be called from gdb easily. | 1666 // can be called from gdb easily. |
1669 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 1667 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
1670 | 1668 |
1671 #endif | 1669 #endif |
1672 | 1670 |
1673 #endif // LayoutObject_h | 1671 #endif // LayoutObject_h |
OLD | NEW |