| 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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 bool isLayoutTableCol() const { return isOfType(LayoutObjectLayoutTableCol);
} | 375 bool isLayoutTableCol() const { return isOfType(LayoutObjectLayoutTableCol);
} |
| 376 bool isListBox() const { return isOfType(LayoutObjectListBox); } | 376 bool isListBox() const { return isOfType(LayoutObjectListBox); } |
| 377 bool isListItem() const { return isOfType(LayoutObjectListItem); } | 377 bool isListItem() const { return isOfType(LayoutObjectListItem); } |
| 378 bool isListMarker() const { return isOfType(LayoutObjectListMarker); } | 378 bool isListMarker() const { return isOfType(LayoutObjectListMarker); } |
| 379 bool isMedia() const { return isOfType(LayoutObjectMedia); } | 379 bool isMedia() const { return isOfType(LayoutObjectMedia); } |
| 380 bool isMenuList() const { return isOfType(LayoutObjectMenuList); } | 380 bool isMenuList() const { return isOfType(LayoutObjectMenuList); } |
| 381 bool isMeter() const { return isOfType(LayoutObjectMeter); } | 381 bool isMeter() const { return isOfType(LayoutObjectMeter); } |
| 382 bool isProgress() const { return isOfType(LayoutObjectProgress); } | 382 bool isProgress() const { return isOfType(LayoutObjectProgress); } |
| 383 bool isQuote() const { return isOfType(LayoutObjectQuote); } | 383 bool isQuote() const { return isOfType(LayoutObjectQuote); } |
| 384 bool isLayoutButton() const { return isOfType(LayoutObjectLayoutButton); } | 384 bool isLayoutButton() const { return isOfType(LayoutObjectLayoutButton); } |
| 385 bool isLayoutFullScreen() const { return isOfType(LayoutObjectLayoutFullScre
en); } | |
| 386 bool isLayoutFullScreenPlaceholder() const { return isOfType(LayoutObjectLay
outFullScreenPlaceholder); } | |
| 387 bool isLayoutGrid() const { return isOfType(LayoutObjectLayoutGrid); } | 385 bool isLayoutGrid() const { return isOfType(LayoutObjectLayoutGrid); } |
| 388 bool isLayoutIFrame() const { return isOfType(LayoutObjectLayoutIFrame); } | 386 bool isLayoutIFrame() const { return isOfType(LayoutObjectLayoutIFrame); } |
| 389 bool isLayoutImage() const { return isOfType(LayoutObjectLayoutImage); } | 387 bool isLayoutImage() const { return isOfType(LayoutObjectLayoutImage); } |
| 390 bool isLayoutMultiColumnSet() const { return isOfType(LayoutObjectLayoutMult
iColumnSet); } | 388 bool isLayoutMultiColumnSet() const { return isOfType(LayoutObjectLayoutMult
iColumnSet); } |
| 391 bool isLayoutMultiColumnSpannerPlaceholder() const { return isOfType(LayoutO
bjectLayoutMultiColumnSpannerPlaceholder); } | 389 bool isLayoutMultiColumnSpannerPlaceholder() const { return isOfType(LayoutO
bjectLayoutMultiColumnSpannerPlaceholder); } |
| 392 bool isLayoutScrollbarPart() const { return isOfType(LayoutObjectLayoutScrol
lbarPart); } | 390 bool isLayoutScrollbarPart() const { return isOfType(LayoutObjectLayoutScrol
lbarPart); } |
| 393 bool isLayoutView() const { return isOfType(LayoutObjectLayoutView); } | 391 bool isLayoutView() const { return isOfType(LayoutObjectLayoutView); } |
| 394 bool isReplica() const { return isOfType(LayoutObjectReplica); } | 392 bool isReplica() const { return isOfType(LayoutObjectReplica); } |
| 395 bool isRuby() const { return isOfType(LayoutObjectRuby); } | 393 bool isRuby() const { return isOfType(LayoutObjectRuby); } |
| 396 bool isRubyBase() const { return isOfType(LayoutObjectRubyBase); } | 394 bool isRubyBase() const { return isOfType(LayoutObjectRubyBase); } |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 // rest of the layout tree will move to a similar model. | 521 // rest of the layout tree will move to a similar model. |
| 524 virtual bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParen
t, HitTestAction); | 522 virtual bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParen
t, HitTestAction); |
| 525 | 523 |
| 526 bool isAnonymous() const { return m_bitfields.isAnonymous(); } | 524 bool isAnonymous() const { return m_bitfields.isAnonymous(); } |
| 527 bool isAnonymousBlock() const | 525 bool isAnonymousBlock() const |
| 528 { | 526 { |
| 529 // This function is kept in sync with anonymous block creation condition
s in | 527 // This function is kept in sync with anonymous block creation condition
s in |
| 530 // LayoutBlock::createAnonymousBlock(). This includes creating an anonym
ous | 528 // LayoutBlock::createAnonymousBlock(). This includes creating an anonym
ous |
| 531 // LayoutBlock having a BLOCK or BOX display. Other classes such as Layo
utTextFragment | 529 // LayoutBlock having a BLOCK or BOX display. Other classes such as Layo
utTextFragment |
| 532 // are not LayoutBlocks and will return false. See https://bugs.webkit.o
rg/show_bug.cgi?id=56709. | 530 // are not LayoutBlocks and will return false. See https://bugs.webkit.o
rg/show_bug.cgi?id=56709. |
| 533 return isAnonymous() && (style()->display() == BLOCK || style()->display
() == BOX) && style()->styleType() == NOPSEUDO && isLayoutBlock() && !isListMark
er() && !isLayoutFlowThread() && !isLayoutMultiColumnSet() | 531 return isAnonymous() && (style()->display() == BLOCK || style()->display
() == BOX) && style()->styleType() == NOPSEUDO && isLayoutBlock() && !isListMark
er() && !isLayoutFlowThread() && !isLayoutMultiColumnSet(); |
| 534 && !isLayoutFullScreen() | |
| 535 && !isLayoutFullScreenPlaceholder(); | |
| 536 } | 532 } |
| 537 bool isElementContinuation() const { return node() && node()->layoutObject()
!= this; } | 533 bool isElementContinuation() const { return node() && node()->layoutObject()
!= this; } |
| 538 bool isInlineElementContinuation() const { return isElementContinuation() &&
isInline(); } | 534 bool isInlineElementContinuation() const { return isElementContinuation() &&
isInline(); } |
| 539 virtual LayoutBoxModelObject* virtualContinuation() const { return nullptr;
} | 535 virtual LayoutBoxModelObject* virtualContinuation() const { return nullptr;
} |
| 540 | 536 |
| 541 bool isFloating() const { return m_bitfields.floating(); } | 537 bool isFloating() const { return m_bitfields.floating(); } |
| 542 | 538 |
| 543 bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione
d(); } // absolute or fixed positioning | 539 bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione
d(); } // absolute or fixed positioning |
| 544 bool isInFlowPositioned() const { return m_bitfields.isInFlowPositioned(); }
// relative or sticky positioning | 540 bool isInFlowPositioned() const { return m_bitfields.isInFlowPositioned(); }
// relative or sticky positioning |
| 545 bool isRelPositioned() const { return m_bitfields.isRelPositioned(); } // re
lative positioning | 541 bool isRelPositioned() const { return m_bitfields.isRelPositioned(); } // re
lative positioning |
| (...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1181 LayoutObjectListBox, | 1177 LayoutObjectListBox, |
| 1182 LayoutObjectListItem, | 1178 LayoutObjectListItem, |
| 1183 LayoutObjectListMarker, | 1179 LayoutObjectListMarker, |
| 1184 LayoutObjectMedia, | 1180 LayoutObjectMedia, |
| 1185 LayoutObjectMenuList, | 1181 LayoutObjectMenuList, |
| 1186 LayoutObjectMeter, | 1182 LayoutObjectMeter, |
| 1187 LayoutObjectProgress, | 1183 LayoutObjectProgress, |
| 1188 LayoutObjectQuote, | 1184 LayoutObjectQuote, |
| 1189 LayoutObjectLayoutButton, | 1185 LayoutObjectLayoutButton, |
| 1190 LayoutObjectLayoutFlowThread, | 1186 LayoutObjectLayoutFlowThread, |
| 1191 LayoutObjectLayoutFullScreen, | |
| 1192 LayoutObjectLayoutFullScreenPlaceholder, | |
| 1193 LayoutObjectLayoutGrid, | 1187 LayoutObjectLayoutGrid, |
| 1194 LayoutObjectLayoutIFrame, | 1188 LayoutObjectLayoutIFrame, |
| 1195 LayoutObjectLayoutImage, | 1189 LayoutObjectLayoutImage, |
| 1196 LayoutObjectLayoutInline, | 1190 LayoutObjectLayoutInline, |
| 1197 LayoutObjectLayoutMultiColumnSet, | 1191 LayoutObjectLayoutMultiColumnSet, |
| 1198 LayoutObjectLayoutMultiColumnSpannerPlaceholder, | 1192 LayoutObjectLayoutMultiColumnSpannerPlaceholder, |
| 1199 LayoutObjectLayoutPart, | 1193 LayoutObjectLayoutPart, |
| 1200 LayoutObjectLayoutScrollbarPart, | 1194 LayoutObjectLayoutScrollbarPart, |
| 1201 LayoutObjectLayoutView, | 1195 LayoutObjectLayoutView, |
| 1202 LayoutObjectReplica, | 1196 LayoutObjectReplica, |
| (...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1854 void showTree(const blink::LayoutObject*); | 1848 void showTree(const blink::LayoutObject*); |
| 1855 void showLineTree(const blink::LayoutObject*); | 1849 void showLineTree(const blink::LayoutObject*); |
| 1856 void showLayoutTree(const blink::LayoutObject* object1); | 1850 void showLayoutTree(const blink::LayoutObject* object1); |
| 1857 // We don't make object2 an optional parameter so that showLayoutTree | 1851 // We don't make object2 an optional parameter so that showLayoutTree |
| 1858 // can be called from gdb easily. | 1852 // can be called from gdb easily. |
| 1859 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 1853 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
| 1860 | 1854 |
| 1861 #endif | 1855 #endif |
| 1862 | 1856 |
| 1863 #endif // LayoutObject_h | 1857 #endif // LayoutObject_h |
| OLD | NEW |