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

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

Issue 1156273002: Add assert that updateLayoutTree clears dirty bits. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Check the accept conditions for documents. Created 5 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 960 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 if (isUserActionElement()) { 971 if (isUserActionElement()) {
972 if (hovered()) 972 if (hovered())
973 doc.hoveredNodeDetached(this); 973 doc.hoveredNodeDetached(this);
974 if (inActiveChain()) 974 if (inActiveChain())
975 doc.activeChainNodeDetached(this); 975 doc.activeChainNodeDetached(this);
976 doc.userActionElements().didDetach(this); 976 doc.userActionElements().didDetach(this);
977 } 977 }
978 } 978 }
979 979
980 setStyleChange(NeedsReattachStyleChange); 980 setStyleChange(NeedsReattachStyleChange);
981 setChildNeedsStyleRecalc();
982 981
983 document().styleEngine().styleInvalidator().clearInvalidation(*this); 982 document().styleEngine().styleInvalidator().clearInvalidation(*this);
984 clearChildNeedsStyleInvalidation(); 983 clearChildNeedsStyleInvalidation();
985 clearNeedsStyleInvalidation(); 984 clearNeedsStyleInvalidation();
986 985
987 #if ENABLE(ASSERT) 986 #if ENABLE(ASSERT)
988 detachingNode = nullptr; 987 detachingNode = nullptr;
989 #endif 988 #endif
990 } 989 }
991 990
(...skipping 1513 matching lines...) Expand 10 before | Expand all | Expand 10 after
2505 2504
2506 void showNodePath(const blink::Node* node) 2505 void showNodePath(const blink::Node* node)
2507 { 2506 {
2508 if (node) 2507 if (node)
2509 node->showNodePathForThis(); 2508 node->showNodePathForThis();
2510 else 2509 else
2511 fprintf(stderr, "Cannot showNodePath for (nil)\n"); 2510 fprintf(stderr, "Cannot showNodePath for (nil)\n");
2512 } 2511 }
2513 2512
2514 #endif 2513 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698