Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: Source/core/dom/Node.cpp

Issue 267053002: ASSERT on renderer lifecycle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 977 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 static Node* detachingNode; 988 static Node* detachingNode;
989 989
990 bool Node::inDetach() const 990 bool Node::inDetach() const
991 { 991 {
992 return detachingNode == this; 992 return detachingNode == this;
993 } 993 }
994 #endif 994 #endif
995 995
996 void Node::detach(const AttachContext& context) 996 void Node::detach(const AttachContext& context)
997 { 997 {
998 // FIXME: We should not modify the structure of the render tree during
999 // layout. crbug.com/370463
esprehn 2014/05/08 05:41:25 This doesn't need a fix me, it's correct to modify
dsinclair 2014/05/08 19:32:11 Done.
1000 DeprecatedDisableModifyRenderTreeStructureAsserts disabler;
1001
998 #ifndef NDEBUG 1002 #ifndef NDEBUG
999 ASSERT(!detachingNode); 1003 ASSERT(!detachingNode);
1000 detachingNode = this; 1004 detachingNode = this;
1001 #endif 1005 #endif
1002 1006
1003 if (renderer()) 1007 if (renderer())
1004 renderer()->destroyAndCleanupAnonymousWrappers(); 1008 renderer()->destroyAndCleanupAnonymousWrappers();
1005 setRenderer(0); 1009 setRenderer(0);
1006 1010
1007 // Do not remove the element's hovered and active status 1011 // Do not remove the element's hovered and active status
(...skipping 1576 matching lines...) Expand 10 before | Expand all | Expand 10 after
2584 node->showTreeForThis(); 2588 node->showTreeForThis();
2585 } 2589 }
2586 2590
2587 void showNodePath(const WebCore::Node* node) 2591 void showNodePath(const WebCore::Node* node)
2588 { 2592 {
2589 if (node) 2593 if (node)
2590 node->showNodePathForThis(); 2594 node->showNodePathForThis();
2591 } 2595 }
2592 2596
2593 #endif 2597 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698