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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 | 620 |
621 Node* nonPseudoNode() const | 621 Node* nonPseudoNode() const |
622 { | 622 { |
623 return isPseudoElement() ? 0 : node(); | 623 return isPseudoElement() ? 0 : node(); |
624 } | 624 } |
625 | 625 |
626 // FIXME: Why does RenderPart need this? crbug.com/422457 | 626 // FIXME: Why does RenderPart need this? crbug.com/422457 |
627 void clearNode() { m_node = nullptr; } | 627 void clearNode() { m_node = nullptr; } |
628 | 628 |
629 // Returns the styled node that caused the generation of this renderer. | 629 // Returns the styled node that caused the generation of this renderer. |
630 // This is the same as node() except for renderers of :before and :after | 630 // This is the same as node() except for renderers of :before, :after and |
631 // pseudo elements for which their parent node is returned. | 631 // :first-letter pseudo elements for which their parent node is returned. |
632 Node* generatingNode() const { return isPseudoElement() ? node()->parentOrSh
adowHostNode() : node(); } | 632 Node* generatingNode() const { return isPseudoElement() ? node()->parentOrSh
adowHostNode() : node(); } |
633 | 633 |
634 Document& document() const { return m_node->document(); } | 634 Document& document() const { return m_node->document(); } |
635 LocalFrame* frame() const { return document().frame(); } | 635 LocalFrame* frame() const { return document().frame(); } |
636 | 636 |
637 // Returns the object containing this one. Can be different from parent for
positioned elements. | 637 // Returns the object containing this one. Can be different from parent for
positioned elements. |
638 // If paintInvalidationContainer and paintInvalidationContainerSkipped are n
ot null, on return *paintInvalidationContainerSkipped | 638 // If paintInvalidationContainer and paintInvalidationContainerSkipped are n
ot null, on return *paintInvalidationContainerSkipped |
639 // is true if the renderer returned is an ancestor of paintInvalidationConta
iner. | 639 // is true if the renderer returned is an ancestor of paintInvalidationConta
iner. |
640 RenderObject* container(const RenderLayerModelObject* paintInvalidationConta
iner = 0, bool* paintInvalidationContainerSkipped = 0) const; | 640 RenderObject* container(const RenderLayerModelObject* paintInvalidationConta
iner = 0, bool* paintInvalidationContainerSkipped = 0) const; |
641 RenderBlock* containerForFixedPosition(const RenderLayerModelObject* paintIn
validationContainer = 0, bool* paintInvalidationContainerSkipped = 0) const; | 641 RenderBlock* containerForFixedPosition(const RenderLayerModelObject* paintIn
validationContainer = 0, bool* paintInvalidationContainerSkipped = 0) const; |
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1615 void showTree(const blink::RenderObject*); | 1615 void showTree(const blink::RenderObject*); |
1616 void showLineTree(const blink::RenderObject*); | 1616 void showLineTree(const blink::RenderObject*); |
1617 void showRenderTree(const blink::RenderObject* object1); | 1617 void showRenderTree(const blink::RenderObject* object1); |
1618 // We don't make object2 an optional parameter so that showRenderTree | 1618 // We don't make object2 an optional parameter so that showRenderTree |
1619 // can be called from gdb easily. | 1619 // can be called from gdb easily. |
1620 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); | 1620 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); |
1621 | 1621 |
1622 #endif | 1622 #endif |
1623 | 1623 |
1624 #endif // RenderObject_h | 1624 #endif // RenderObject_h |
OLD | NEW |