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 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 // by innerHTML or editing. | 1055 // by innerHTML or editing. |
1056 // FIXME: innerHTML and editing should also lazyAttach. | 1056 // FIXME: innerHTML and editing should also lazyAttach. |
1057 if (node->attached()) | 1057 if (node->attached()) |
1058 node->detach(context); | 1058 node->detach(context); |
1059 node = NodeTraversal::nextSkippingChildren(node, root); | 1059 node = NodeTraversal::nextSkippingChildren(node, root); |
1060 } | 1060 } |
1061 } | 1061 } |
1062 | 1062 |
1063 void Node::reattach(const AttachContext& context) | 1063 void Node::reattach(const AttachContext& context) |
1064 { | 1064 { |
1065 // FIXME: Text::updateTextRenderer calls reattach outside a style recalc. | 1065 ASSERT(document().inStyleRecalc()); |
1066 ASSERT(document().inStyleRecalc() || isTextNode()); | |
1067 AttachContext reattachContext(context); | 1066 AttachContext reattachContext(context); |
1068 reattachContext.performingReattach = true; | 1067 reattachContext.performingReattach = true; |
1069 | 1068 |
1070 detachNode(this, reattachContext); | 1069 detachNode(this, reattachContext); |
1071 attach(reattachContext); | 1070 attach(reattachContext); |
1072 } | 1071 } |
1073 | 1072 |
1074 void Node::attach(const AttachContext&) | 1073 void Node::attach(const AttachContext&) |
1075 { | 1074 { |
1076 ASSERT(!attached()); | 1075 ASSERT(!attached()); |
(...skipping 1691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2768 node->showTreeForThis(); | 2767 node->showTreeForThis(); |
2769 } | 2768 } |
2770 | 2769 |
2771 void showNodePath(const WebCore::Node* node) | 2770 void showNodePath(const WebCore::Node* node) |
2772 { | 2771 { |
2773 if (node) | 2772 if (node) |
2774 node->showNodePathForThis(); | 2773 node->showNodePathForThis(); |
2775 } | 2774 } |
2776 | 2775 |
2777 #endif | 2776 #endif |
OLD | NEW |