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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 virtual bool isSliderThumb() const { return false; } | 396 virtual bool isSliderThumb() const { return false; } |
397 virtual bool isTable() const { return false; } | 397 virtual bool isTable() const { return false; } |
398 virtual bool isTableCaption() const { return false; } | 398 virtual bool isTableCaption() const { return false; } |
399 virtual bool isTableCell() const { return false; } | 399 virtual bool isTableCell() const { return false; } |
400 virtual bool isTableRow() const { return false; } | 400 virtual bool isTableRow() const { return false; } |
401 virtual bool isTableSection() const { return false; } | 401 virtual bool isTableSection() const { return false; } |
402 virtual bool isTextArea() const { return false; } | 402 virtual bool isTextArea() const { return false; } |
403 virtual bool isTextControl() const { return false; } | 403 virtual bool isTextControl() const { return false; } |
404 virtual bool isTextField() const { return false; } | 404 virtual bool isTextField() const { return false; } |
405 virtual bool isVideo() const { return false; } | 405 virtual bool isVideo() const { return false; } |
406 virtual bool isWidget() const { return false; } | |
407 | 406 |
408 bool isDocumentElement() const { return document().documentElement() == m_no
de; } | 407 bool isDocumentElement() const { return document().documentElement() == m_no
de; } |
409 // isBody is called from RenderBox::styleWillChange and is thus quite hot. | 408 // isBody is called from RenderBox::styleWillChange and is thus quite hot. |
410 bool isBody() const { return node() && node()->hasTagName(HTMLNames::bodyTag
); } | 409 bool isBody() const { return node() && node()->hasTagName(HTMLNames::bodyTag
); } |
411 bool isHR() const; | 410 bool isHR() const; |
412 bool isLegend() const; | 411 bool isLegend() const; |
413 | 412 |
414 bool isTablePart() const { return isTableCell() || isRenderTableCol() || isT
ableCaption() || isTableRow() || isTableSection(); } | 413 bool isTablePart() const { return isTableCell() || isRenderTableCol() || isT
ableCaption() || isTableRow() || isTableSection(); } |
415 | 414 |
416 inline bool isBeforeContent() const; | 415 inline bool isBeforeContent() const; |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 Node* node() const | 626 Node* node() const |
628 { | 627 { |
629 return isAnonymous() ? 0 : m_node.get(); | 628 return isAnonymous() ? 0 : m_node.get(); |
630 } | 629 } |
631 | 630 |
632 Node* nonPseudoNode() const | 631 Node* nonPseudoNode() const |
633 { | 632 { |
634 return isPseudoElement() ? 0 : node(); | 633 return isPseudoElement() ? 0 : node(); |
635 } | 634 } |
636 | 635 |
637 // FIXME: Why does RenderWidget need this? | 636 // FIXME: Why does RenderPart need this? crbug.com/422457 |
638 void clearNode() { m_node = nullptr; } | 637 void clearNode() { m_node = nullptr; } |
639 | 638 |
640 // Returns the styled node that caused the generation of this renderer. | 639 // Returns the styled node that caused the generation of this renderer. |
641 // This is the same as node() except for renderers of :before and :after | 640 // This is the same as node() except for renderers of :before and :after |
642 // pseudo elements for which their parent node is returned. | 641 // pseudo elements for which their parent node is returned. |
643 Node* generatingNode() const { return isPseudoElement() ? node()->parentOrSh
adowHostNode() : node(); } | 642 Node* generatingNode() const { return isPseudoElement() ? node()->parentOrSh
adowHostNode() : node(); } |
644 | 643 |
645 Document& document() const { return m_node->document(); } | 644 Document& document() const { return m_node->document(); } |
646 LocalFrame* frame() const { return document().frame(); } | 645 LocalFrame* frame() const { return document().frame(); } |
647 | 646 |
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1554 void showTree(const blink::RenderObject*); | 1553 void showTree(const blink::RenderObject*); |
1555 void showLineTree(const blink::RenderObject*); | 1554 void showLineTree(const blink::RenderObject*); |
1556 void showRenderTree(const blink::RenderObject* object1); | 1555 void showRenderTree(const blink::RenderObject* object1); |
1557 // We don't make object2 an optional parameter so that showRenderTree | 1556 // We don't make object2 an optional parameter so that showRenderTree |
1558 // can be called from gdb easily. | 1557 // can be called from gdb easily. |
1559 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); | 1558 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); |
1560 | 1559 |
1561 #endif | 1560 #endif |
1562 | 1561 |
1563 #endif // RenderObject_h | 1562 #endif // RenderObject_h |
OLD | NEW |