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 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 } | 940 } |
941 DCHECK(!otherIterator); | 941 DCHECK(!otherIterator); |
942 return nullptr; | 942 return nullptr; |
943 } | 943 } |
944 | 944 |
945 void Node::reattach(const AttachContext& context) | 945 void Node::reattach(const AttachContext& context) |
946 { | 946 { |
947 AttachContext reattachContext(context); | 947 AttachContext reattachContext(context); |
948 reattachContext.performingReattach = true; | 948 reattachContext.performingReattach = true; |
949 | 949 |
950 // We only need to detach if the node has already been through attach(). | 950 // We only need to detach if the node has already been through attachLayoutT
ree(). |
951 if (getStyleChangeType() < NeedsReattachStyleChange) | 951 if (getStyleChangeType() < NeedsReattachStyleChange) |
952 detach(reattachContext); | 952 detach(reattachContext); |
953 attachLayoutTree(reattachContext); | 953 attachLayoutTree(reattachContext); |
954 } | 954 } |
955 | 955 |
956 void Node::attachLayoutTree(const AttachContext&) | 956 void Node::attachLayoutTree(const AttachContext&) |
957 { | 957 { |
958 DCHECK(document().inStyleRecalc() || isDocumentNode()); | 958 DCHECK(document().inStyleRecalc() || isDocumentNode()); |
959 DCHECK(!document().lifecycle().inDetach()); | 959 DCHECK(!document().lifecycle().inDetach()); |
960 DCHECK(needsAttach()); | 960 DCHECK(needsAttach()); |
(...skipping 1575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2536 | 2536 |
2537 void showNodePath(const blink::Node* node) | 2537 void showNodePath(const blink::Node* node) |
2538 { | 2538 { |
2539 if (node) | 2539 if (node) |
2540 node->showNodePathForThis(); | 2540 node->showNodePathForThis(); |
2541 else | 2541 else |
2542 fprintf(stderr, "Cannot showNodePath for (nil)\n"); | 2542 fprintf(stderr, "Cannot showNodePath for (nil)\n"); |
2543 } | 2543 } |
2544 | 2544 |
2545 #endif | 2545 #endif |
OLD | NEW |