| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 | 524 |
| 525 // Attaches this node to the rendering tree. This calculates the style to be
applied to the node and creates an | 525 // Attaches this node to the rendering tree. This calculates the style to be
applied to the node and creates an |
| 526 // appropriate RenderObject which will be inserted into the tree (except whe
n the style has display: none). This | 526 // appropriate RenderObject which will be inserted into the tree (except whe
n the style has display: none). This |
| 527 // makes the node visible in the FrameView. | 527 // makes the node visible in the FrameView. |
| 528 virtual void attach(const AttachContext& = AttachContext()); | 528 virtual void attach(const AttachContext& = AttachContext()); |
| 529 | 529 |
| 530 // Detaches the node from the rendering tree, making it invisible in the ren
dered view. This method will remove | 530 // Detaches the node from the rendering tree, making it invisible in the ren
dered view. This method will remove |
| 531 // the node's rendering object from the rendering tree and delete it. | 531 // the node's rendering object from the rendering tree and delete it. |
| 532 virtual void detach(const AttachContext& = AttachContext()); | 532 virtual void detach(const AttachContext& = AttachContext()); |
| 533 | 533 |
| 534 #ifndef NDEBUG | 534 #if ENABLE(ASSERT) |
| 535 bool inDetach() const; | 535 bool inDetach() const; |
| 536 #endif | 536 #endif |
| 537 | 537 |
| 538 void reattach(const AttachContext& = AttachContext()); | 538 void reattach(const AttachContext& = AttachContext()); |
| 539 void lazyReattachIfAttached(); | 539 void lazyReattachIfAttached(); |
| 540 | 540 |
| 541 // Returns true if recalcStyle should be called on the object, if there is s
uch a method (on Document and Element). | 541 // Returns true if recalcStyle should be called on the object, if there is s
uch a method (on Document and Element). |
| 542 bool shouldCallRecalcStyle(StyleRecalcChange); | 542 bool shouldCallRecalcStyle(StyleRecalcChange); |
| 543 | 543 |
| 544 // Wrapper for nodes that don't have a renderer, but still cache the style (
like HTMLOptionElement). | 544 // Wrapper for nodes that don't have a renderer, but still cache the style (
like HTMLOptionElement). |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 } // namespace WebCore | 904 } // namespace WebCore |
| 905 | 905 |
| 906 #ifndef NDEBUG | 906 #ifndef NDEBUG |
| 907 // Outside the WebCore namespace for ease of invocation from gdb. | 907 // Outside the WebCore namespace for ease of invocation from gdb. |
| 908 void showNode(const WebCore::Node*); | 908 void showNode(const WebCore::Node*); |
| 909 void showTree(const WebCore::Node*); | 909 void showTree(const WebCore::Node*); |
| 910 void showNodePath(const WebCore::Node*); | 910 void showNodePath(const WebCore::Node*); |
| 911 #endif | 911 #endif |
| 912 | 912 |
| 913 #endif | 913 #endif |
| OLD | NEW |