| 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 bool isLayoutTableCol() const { return isOfType(LayoutObjectLayoutTableCol);
} | 435 bool isLayoutTableCol() const { return isOfType(LayoutObjectLayoutTableCol);
} |
| 436 bool isListBox() const { return isOfType(LayoutObjectListBox); } | 436 bool isListBox() const { return isOfType(LayoutObjectListBox); } |
| 437 bool isListItem() const { return isOfType(LayoutObjectListItem); } | 437 bool isListItem() const { return isOfType(LayoutObjectListItem); } |
| 438 bool isListMarker() const { return isOfType(LayoutObjectListMarker); } | 438 bool isListMarker() const { return isOfType(LayoutObjectListMarker); } |
| 439 bool isMedia() const { return isOfType(LayoutObjectMedia); } | 439 bool isMedia() const { return isOfType(LayoutObjectMedia); } |
| 440 bool isMenuList() const { return isOfType(LayoutObjectMenuList); } | 440 bool isMenuList() const { return isOfType(LayoutObjectMenuList); } |
| 441 bool isMeter() const { return isOfType(LayoutObjectMeter); } | 441 bool isMeter() const { return isOfType(LayoutObjectMeter); } |
| 442 bool isProgress() const { return isOfType(LayoutObjectProgress); } | 442 bool isProgress() const { return isOfType(LayoutObjectProgress); } |
| 443 bool isQuote() const { return isOfType(LayoutObjectQuote); } | 443 bool isQuote() const { return isOfType(LayoutObjectQuote); } |
| 444 bool isLayoutButton() const { return isOfType(LayoutObjectLayoutButton); } | 444 bool isLayoutButton() const { return isOfType(LayoutObjectLayoutButton); } |
| 445 bool isLayoutFullScreen() const { return isOfType(LayoutObjectLayoutFullScre
en); } |
| 446 bool isLayoutFullScreenPlaceholder() const { return isOfType(LayoutObjectLay
outFullScreenPlaceholder); } |
| 445 bool isLayoutGrid() const { return isOfType(LayoutObjectLayoutGrid); } | 447 bool isLayoutGrid() const { return isOfType(LayoutObjectLayoutGrid); } |
| 446 bool isLayoutIFrame() const { return isOfType(LayoutObjectLayoutIFrame); } | 448 bool isLayoutIFrame() const { return isOfType(LayoutObjectLayoutIFrame); } |
| 447 bool isLayoutImage() const { return isOfType(LayoutObjectLayoutImage); } | 449 bool isLayoutImage() const { return isOfType(LayoutObjectLayoutImage); } |
| 448 bool isLayoutMultiColumnSet() const { return isOfType(LayoutObjectLayoutMult
iColumnSet); } | 450 bool isLayoutMultiColumnSet() const { return isOfType(LayoutObjectLayoutMult
iColumnSet); } |
| 449 bool isLayoutMultiColumnSpannerPlaceholder() const { return isOfType(LayoutO
bjectLayoutMultiColumnSpannerPlaceholder); } | 451 bool isLayoutMultiColumnSpannerPlaceholder() const { return isOfType(LayoutO
bjectLayoutMultiColumnSpannerPlaceholder); } |
| 450 bool isLayoutScrollbarPart() const { return isOfType(LayoutObjectLayoutScrol
lbarPart); } | 452 bool isLayoutScrollbarPart() const { return isOfType(LayoutObjectLayoutScrol
lbarPart); } |
| 451 bool isLayoutView() const { return isOfType(LayoutObjectLayoutView); } | 453 bool isLayoutView() const { return isOfType(LayoutObjectLayoutView); } |
| 452 bool isReplica() const { return isOfType(LayoutObjectReplica); } | 454 bool isReplica() const { return isOfType(LayoutObjectReplica); } |
| 453 bool isRuby() const { return isOfType(LayoutObjectRuby); } | 455 bool isRuby() const { return isOfType(LayoutObjectRuby); } |
| 454 bool isRubyBase() const { return isOfType(LayoutObjectRubyBase); } | 456 bool isRubyBase() const { return isOfType(LayoutObjectRubyBase); } |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 // rest of the layout tree will move to a similar model. | 583 // rest of the layout tree will move to a similar model. |
| 582 virtual bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParen
t, HitTestAction); | 584 virtual bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParen
t, HitTestAction); |
| 583 | 585 |
| 584 bool isAnonymous() const { return m_bitfields.isAnonymous(); } | 586 bool isAnonymous() const { return m_bitfields.isAnonymous(); } |
| 585 bool isAnonymousBlock() const | 587 bool isAnonymousBlock() const |
| 586 { | 588 { |
| 587 // This function is kept in sync with anonymous block creation condition
s in | 589 // This function is kept in sync with anonymous block creation condition
s in |
| 588 // LayoutBlock::createAnonymousBlock(). This includes creating an anonym
ous | 590 // LayoutBlock::createAnonymousBlock(). This includes creating an anonym
ous |
| 589 // LayoutBlock having a BLOCK or BOX display. Other classes such as Layo
utTextFragment | 591 // LayoutBlock having a BLOCK or BOX display. Other classes such as Layo
utTextFragment |
| 590 // are not LayoutBlocks and will return false. See https://bugs.webkit.o
rg/show_bug.cgi?id=56709. | 592 // are not LayoutBlocks and will return false. See https://bugs.webkit.o
rg/show_bug.cgi?id=56709. |
| 591 return isAnonymous() && (style()->display() == BLOCK || style()->display
() == BOX) && style()->styleType() == NOPSEUDO && isLayoutBlock() && !isListMark
er() && !isLayoutFlowThread() && !isLayoutMultiColumnSet(); | 593 return isAnonymous() && (style()->display() == BLOCK || style()->display
() == BOX) && style()->styleType() == NOPSEUDO && isLayoutBlock() && !isListMark
er() && !isLayoutFlowThread() && !isLayoutMultiColumnSet() |
| 594 && !isLayoutFullScreen() |
| 595 && !isLayoutFullScreenPlaceholder(); |
| 592 } | 596 } |
| 593 bool isElementContinuation() const { return node() && node()->layoutObject()
!= this; } | 597 bool isElementContinuation() const { return node() && node()->layoutObject()
!= this; } |
| 594 bool isInlineElementContinuation() const { return isElementContinuation() &&
isInline(); } | 598 bool isInlineElementContinuation() const { return isElementContinuation() &&
isInline(); } |
| 595 virtual LayoutBoxModelObject* virtualContinuation() const { return nullptr;
} | 599 virtual LayoutBoxModelObject* virtualContinuation() const { return nullptr;
} |
| 596 | 600 |
| 597 bool isFloating() const { return m_bitfields.floating(); } | 601 bool isFloating() const { return m_bitfields.floating(); } |
| 598 | 602 |
| 599 bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione
d(); } // absolute or fixed positioning | 603 bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione
d(); } // absolute or fixed positioning |
| 600 bool isInFlowPositioned() const { return m_bitfields.isInFlowPositioned(); }
// relative or sticky positioning | 604 bool isInFlowPositioned() const { return m_bitfields.isInFlowPositioned(); }
// relative or sticky positioning |
| 601 bool isRelPositioned() const { return m_bitfields.isRelPositioned(); } // re
lative positioning | 605 bool isRelPositioned() const { return m_bitfields.isRelPositioned(); } // re
lative positioning |
| (...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1297 LayoutObjectListBox, | 1301 LayoutObjectListBox, |
| 1298 LayoutObjectListItem, | 1302 LayoutObjectListItem, |
| 1299 LayoutObjectListMarker, | 1303 LayoutObjectListMarker, |
| 1300 LayoutObjectMedia, | 1304 LayoutObjectMedia, |
| 1301 LayoutObjectMenuList, | 1305 LayoutObjectMenuList, |
| 1302 LayoutObjectMeter, | 1306 LayoutObjectMeter, |
| 1303 LayoutObjectProgress, | 1307 LayoutObjectProgress, |
| 1304 LayoutObjectQuote, | 1308 LayoutObjectQuote, |
| 1305 LayoutObjectLayoutButton, | 1309 LayoutObjectLayoutButton, |
| 1306 LayoutObjectLayoutFlowThread, | 1310 LayoutObjectLayoutFlowThread, |
| 1311 LayoutObjectLayoutFullScreen, |
| 1312 LayoutObjectLayoutFullScreenPlaceholder, |
| 1307 LayoutObjectLayoutGrid, | 1313 LayoutObjectLayoutGrid, |
| 1308 LayoutObjectLayoutIFrame, | 1314 LayoutObjectLayoutIFrame, |
| 1309 LayoutObjectLayoutImage, | 1315 LayoutObjectLayoutImage, |
| 1310 LayoutObjectLayoutInline, | 1316 LayoutObjectLayoutInline, |
| 1311 LayoutObjectLayoutMultiColumnSet, | 1317 LayoutObjectLayoutMultiColumnSet, |
| 1312 LayoutObjectLayoutMultiColumnSpannerPlaceholder, | 1318 LayoutObjectLayoutMultiColumnSpannerPlaceholder, |
| 1313 LayoutObjectLayoutPart, | 1319 LayoutObjectLayoutPart, |
| 1314 LayoutObjectLayoutScrollbarPart, | 1320 LayoutObjectLayoutScrollbarPart, |
| 1315 LayoutObjectLayoutView, | 1321 LayoutObjectLayoutView, |
| 1316 LayoutObjectReplica, | 1322 LayoutObjectReplica, |
| (...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2001 void showTree(const blink::LayoutObject*); | 2007 void showTree(const blink::LayoutObject*); |
| 2002 void showLineTree(const blink::LayoutObject*); | 2008 void showLineTree(const blink::LayoutObject*); |
| 2003 void showLayoutTree(const blink::LayoutObject* object1); | 2009 void showLayoutTree(const blink::LayoutObject* object1); |
| 2004 // We don't make object2 an optional parameter so that showLayoutTree | 2010 // We don't make object2 an optional parameter so that showLayoutTree |
| 2005 // can be called from gdb easily. | 2011 // can be called from gdb easily. |
| 2006 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 2012 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
| 2007 | 2013 |
| 2008 #endif | 2014 #endif |
| 2009 | 2015 |
| 2010 #endif // LayoutObject_h | 2016 #endif // LayoutObject_h |
| OLD | NEW |