| 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 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 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 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 | 721 |
| 722 clearNeedsStyleRecalc(); | 722 clearNeedsStyleRecalc(); |
| 723 } | 723 } |
| 724 | 724 |
| 725 void Node::detach(const AttachContext& context) | 725 void Node::detach(const AttachContext& context) |
| 726 { | 726 { |
| 727 ASSERT(document().lifecycle().stateAllowsDetach()); | 727 ASSERT(document().lifecycle().stateAllowsDetach()); |
| 728 DocumentLifecycle::DetachScope willDetach(document().lifecycle()); | 728 DocumentLifecycle::DetachScope willDetach(document().lifecycle()); |
| 729 | 729 |
| 730 if (renderer()) | 730 if (renderer()) |
| 731 renderer()->destroyAndCleanupAnonymousWrappers(); | 731 renderer()->destroy(); |
| 732 setRenderer(0); | 732 setRenderer(0); |
| 733 | 733 |
| 734 // Do not remove the element's hovered and active status | 734 // Do not remove the element's hovered and active status |
| 735 // if performing a reattach. | 735 // if performing a reattach. |
| 736 if (!context.performingReattach) { | 736 if (!context.performingReattach) { |
| 737 Document& doc = document(); | 737 Document& doc = document(); |
| 738 if (isUserActionElement()) { | 738 if (isUserActionElement()) { |
| 739 if (hovered()) | 739 if (hovered()) |
| 740 doc.hoveredNodeDetached(this); | 740 doc.hoveredNodeDetached(this); |
| 741 if (inActiveChain()) | 741 if (inActiveChain()) |
| (...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1662 node->showTreeForThis(); | 1662 node->showTreeForThis(); |
| 1663 } | 1663 } |
| 1664 | 1664 |
| 1665 void showNodePath(const blink::Node* node) | 1665 void showNodePath(const blink::Node* node) |
| 1666 { | 1666 { |
| 1667 if (node) | 1667 if (node) |
| 1668 node->showNodePathForThis(); | 1668 node->showNodePathForThis(); |
| 1669 } | 1669 } |
| 1670 | 1670 |
| 1671 #endif | 1671 #endif |
| OLD | NEW |