| 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 virtual bool isRenderBlockFlow() const { return false; } | 385 virtual bool isRenderBlockFlow() const { return false; } |
| 386 virtual bool isRenderButton() const { return false; } | 386 virtual bool isRenderButton() const { return false; } |
| 387 virtual bool isRenderFlowThread() const { return false; } | 387 virtual bool isRenderFlowThread() const { return false; } |
| 388 virtual bool isRenderFullScreen() const { return false; } | 388 virtual bool isRenderFullScreen() const { return false; } |
| 389 virtual bool isRenderFullScreenPlaceholder() const { return false; } | 389 virtual bool isRenderFullScreenPlaceholder() const { return false; } |
| 390 virtual bool isRenderGrid() const { return false; } | 390 virtual bool isRenderGrid() const { return false; } |
| 391 virtual bool isRenderIFrame() const { return false; } | 391 virtual bool isRenderIFrame() const { return false; } |
| 392 virtual bool isRenderImage() const { return false; } | 392 virtual bool isRenderImage() const { return false; } |
| 393 virtual bool isRenderInline() const { return false; } | 393 virtual bool isRenderInline() const { return false; } |
| 394 virtual bool isRenderMultiColumnSet() const { return false; } | 394 virtual bool isRenderMultiColumnSet() const { return false; } |
| 395 virtual bool isRenderMultiColumnSpannerPlaceholder() const { return false; } |
| 395 virtual bool isRenderPart() const { return false; } | 396 virtual bool isRenderPart() const { return false; } |
| 396 virtual bool isRenderRegion() const { return false; } | 397 virtual bool isRenderRegion() const { return false; } |
| 397 virtual bool isRenderScrollbarPart() const { return false; } | 398 virtual bool isRenderScrollbarPart() const { return false; } |
| 398 virtual bool isRenderTableCol() const { return false; } | 399 virtual bool isRenderTableCol() const { return false; } |
| 399 virtual bool isRenderView() const { return false; } | 400 virtual bool isRenderView() const { return false; } |
| 400 virtual bool isReplica() const { return false; } | 401 virtual bool isReplica() const { return false; } |
| 401 virtual bool isRuby() const { return false; } | 402 virtual bool isRuby() const { return false; } |
| 402 virtual bool isRubyBase() const { return false; } | 403 virtual bool isRubyBase() const { return false; } |
| 403 virtual bool isRubyRun() const { return false; } | 404 virtual bool isRubyRun() const { return false; } |
| 404 virtual bool isRubyText() const { return false; } | 405 virtual bool isRubyText() const { return false; } |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 return true; | 527 return true; |
| 527 } | 528 } |
| 528 | 529 |
| 529 bool isAnonymous() const { return m_bitfields.isAnonymous(); } | 530 bool isAnonymous() const { return m_bitfields.isAnonymous(); } |
| 530 bool isAnonymousBlock() const | 531 bool isAnonymousBlock() const |
| 531 { | 532 { |
| 532 // This function is kept in sync with anonymous block creation condition
s in | 533 // This function is kept in sync with anonymous block creation condition
s in |
| 533 // RenderBlock::createAnonymousBlock(). This includes creating an anonym
ous | 534 // RenderBlock::createAnonymousBlock(). This includes creating an anonym
ous |
| 534 // RenderBlock having a BLOCK or BOX display. Other classes such as Rend
erTextFragment | 535 // RenderBlock having a BLOCK or BOX display. Other classes such as Rend
erTextFragment |
| 535 // are not RenderBlocks and will return false. See https://bugs.webkit.o
rg/show_bug.cgi?id=56709. | 536 // are not RenderBlocks and will return false. See https://bugs.webkit.o
rg/show_bug.cgi?id=56709. |
| 536 return isAnonymous() && (style()->display() == BLOCK || style()->display
() == BOX) && style()->styleType() == NOPSEUDO && isRenderBlock() && !isListMark
er() && !isRenderFlowThread() | 537 return isAnonymous() && (style()->display() == BLOCK || style()->display
() == BOX) && style()->styleType() == NOPSEUDO && isRenderBlock() && !isListMark
er() && !isRenderFlowThread() && !isRenderMultiColumnSet() |
| 537 && !isRenderFullScreen() | 538 && !isRenderFullScreen() |
| 538 && !isRenderFullScreenPlaceholder(); | 539 && !isRenderFullScreenPlaceholder(); |
| 539 } | 540 } |
| 540 bool isAnonymousColumnsBlock() const { return style()->specifiesColumns() &&
isAnonymousBlock(); } | 541 bool isAnonymousColumnsBlock() const { return style()->specifiesColumns() &&
isAnonymousBlock(); } |
| 541 bool isAnonymousColumnSpanBlock() const { return style()->columnSpan() && is
AnonymousBlock(); } | 542 bool isAnonymousColumnSpanBlock() const { return style()->columnSpan() && is
AnonymousBlock(); } |
| 542 bool isElementContinuation() const { return node() && node()->renderer() !=
this; } | 543 bool isElementContinuation() const { return node() && node()->renderer() !=
this; } |
| 543 bool isInlineElementContinuation() const { return isElementContinuation() &&
isInline(); } | 544 bool isInlineElementContinuation() const { return isElementContinuation() &&
isInline(); } |
| 544 virtual RenderBoxModelObject* virtualContinuation() const { return 0; } | 545 virtual RenderBoxModelObject* virtualContinuation() const { return 0; } |
| 545 | 546 |
| 546 bool isFloating() const { return m_bitfields.floating(); } | 547 bool isFloating() const { return m_bitfields.floating(); } |
| (...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1568 void showTree(const blink::RenderObject*); | 1569 void showTree(const blink::RenderObject*); |
| 1569 void showLineTree(const blink::RenderObject*); | 1570 void showLineTree(const blink::RenderObject*); |
| 1570 void showRenderTree(const blink::RenderObject* object1); | 1571 void showRenderTree(const blink::RenderObject* object1); |
| 1571 // We don't make object2 an optional parameter so that showRenderTree | 1572 // We don't make object2 an optional parameter so that showRenderTree |
| 1572 // can be called from gdb easily. | 1573 // can be called from gdb easily. |
| 1573 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); | 1574 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); |
| 1574 | 1575 |
| 1575 #endif | 1576 #endif |
| 1576 | 1577 |
| 1577 #endif // RenderObject_h | 1578 #endif // RenderObject_h |
| OLD | NEW |