| 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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 | 614 |
| 615 Node* nonPseudoNode() const | 615 Node* nonPseudoNode() const |
| 616 { | 616 { |
| 617 return isPseudoElement() ? 0 : node(); | 617 return isPseudoElement() ? 0 : node(); |
| 618 } | 618 } |
| 619 | 619 |
| 620 // FIXME: Why does RenderWidget need this? | 620 // FIXME: Why does RenderWidget need this? |
| 621 void clearNode() { m_node = nullptr; } | 621 void clearNode() { m_node = nullptr; } |
| 622 | 622 |
| 623 // Returns the styled node that caused the generation of this renderer. | 623 // Returns the styled node that caused the generation of this renderer. |
| 624 // This is the same as node() except for renderers of :before and :after | 624 // This is the same as node() except for renderers of :before, :after and |
| 625 // pseudo elements for which their parent node is returned. | 625 // :first-letter pseudo elements for which their parent node is returned. |
| 626 Node* generatingNode() const { return isPseudoElement() ? node()->parentOrSh
adowHostNode() : node(); } | 626 Node* generatingNode() const { return isPseudoElement() ? node()->parentOrSh
adowHostNode() : node(); } |
| 627 | 627 |
| 628 Document& document() const { return m_node->document(); } | 628 Document& document() const { return m_node->document(); } |
| 629 LocalFrame* frame() const { return document().frame(); } | 629 LocalFrame* frame() const { return document().frame(); } |
| 630 | 630 |
| 631 // Returns the object containing this one. Can be different from parent for
positioned elements. | 631 // Returns the object containing this one. Can be different from parent for
positioned elements. |
| 632 // If paintInvalidationContainer and paintInvalidationContainerSkipped are n
ot null, on return *paintInvalidationContainerSkipped | 632 // If paintInvalidationContainer and paintInvalidationContainerSkipped are n
ot null, on return *paintInvalidationContainerSkipped |
| 633 // is true if the renderer returned is an ancestor of paintInvalidationConta
iner. | 633 // is true if the renderer returned is an ancestor of paintInvalidationConta
iner. |
| 634 RenderObject* container(const RenderLayerModelObject* paintInvalidationConta
iner = 0, bool* paintInvalidationContainerSkipped = 0) const; | 634 RenderObject* container(const RenderLayerModelObject* paintInvalidationConta
iner = 0, bool* paintInvalidationContainerSkipped = 0) const; |
| 635 RenderBlock* containerForFixedPosition(const RenderLayerModelObject* paintIn
validationContainer = 0, bool* paintInvalidationContainerSkipped = 0) const; | 635 RenderBlock* containerForFixedPosition(const RenderLayerModelObject* paintIn
validationContainer = 0, bool* paintInvalidationContainerSkipped = 0) const; |
| (...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1540 void showTree(const blink::RenderObject*); | 1540 void showTree(const blink::RenderObject*); |
| 1541 void showLineTree(const blink::RenderObject*); | 1541 void showLineTree(const blink::RenderObject*); |
| 1542 void showRenderTree(const blink::RenderObject* object1); | 1542 void showRenderTree(const blink::RenderObject* object1); |
| 1543 // We don't make object2 an optional parameter so that showRenderTree | 1543 // We don't make object2 an optional parameter so that showRenderTree |
| 1544 // can be called from gdb easily. | 1544 // can be called from gdb easily. |
| 1545 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); | 1545 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec
t* object2); |
| 1546 | 1546 |
| 1547 #endif | 1547 #endif |
| 1548 | 1548 |
| 1549 #endif // RenderObject_h | 1549 #endif // RenderObject_h |
| OLD | NEW |