| 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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 // Returns the styled node that caused the generation of this renderer. | 591 // Returns the styled node that caused the generation of this renderer. |
| 592 // This is the same as node() except for renderers of :before and :after | 592 // This is the same as node() except for renderers of :before and :after |
| 593 // pseudo elements for which their parent node is returned. | 593 // pseudo elements for which their parent node is returned. |
| 594 Node* generatingNode() const { return isPseudoElement() ? node()->parentOrSh
adowHostNode() : node(); } | 594 Node* generatingNode() const { return isPseudoElement() ? node()->parentOrSh
adowHostNode() : node(); } |
| 595 | 595 |
| 596 Document& document() const { return m_node->document(); } | 596 Document& document() const { return m_node->document(); } |
| 597 LocalFrame* frame() const { return document().frame(); } | 597 LocalFrame* frame() const { return document().frame(); } |
| 598 | 598 |
| 599 bool hasOutlineAnnotation() const; | 599 bool hasOutlineAnnotation() const; |
| 600 bool hasOutline() const { return style()->hasOutline() || hasOutlineAnnotati
on(); } | 600 bool hasOutline() const { return style()->hasOutline() || hasOutlineAnnotati
on(); } |
| 601 bool hasOutlineOrBoxShadow() const { return hasOutline() || style()->hasBoxS
hadow(); } |
| 601 | 602 |
| 602 // Returns the object containing this one. Can be different from parent for
positioned elements. | 603 // Returns the object containing this one. Can be different from parent for
positioned elements. |
| 603 // If repaintContainer and repaintContainerSkipped are not null, on return *
repaintContainerSkipped | 604 // If repaintContainer and repaintContainerSkipped are not null, on return *
repaintContainerSkipped |
| 604 // is true if the renderer returned is an ancestor of repaintContainer. | 605 // is true if the renderer returned is an ancestor of repaintContainer. |
| 605 RenderObject* container(const RenderLayerModelObject* repaintContainer = 0,
bool* repaintContainerSkipped = 0) const; | 606 RenderObject* container(const RenderLayerModelObject* repaintContainer = 0,
bool* repaintContainerSkipped = 0) const; |
| 606 | 607 |
| 607 virtual RenderObject* hoverAncestor() const { return parent(); } | 608 virtual RenderObject* hoverAncestor() const { return parent(); } |
| 608 | 609 |
| 609 Element* offsetParent() const; | 610 Element* offsetParent() const; |
| 610 | 611 |
| (...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1420 void showTree(const WebCore::RenderObject*); | 1421 void showTree(const WebCore::RenderObject*); |
| 1421 void showLineTree(const WebCore::RenderObject*); | 1422 void showLineTree(const WebCore::RenderObject*); |
| 1422 void showRenderTree(const WebCore::RenderObject* object1); | 1423 void showRenderTree(const WebCore::RenderObject* object1); |
| 1423 // We don't make object2 an optional parameter so that showRenderTree | 1424 // We don't make object2 an optional parameter so that showRenderTree |
| 1424 // can be called from gdb easily. | 1425 // can be called from gdb easily. |
| 1425 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); | 1426 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO
bject* object2); |
| 1426 | 1427 |
| 1427 #endif | 1428 #endif |
| 1428 | 1429 |
| 1429 #endif // RenderObject_h | 1430 #endif // RenderObject_h |
| OLD | NEW |