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

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

Issue 217713002: Refactor StyleInvalidator to encapsulate all style invalidation state. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove explicit. Created 6 years, 8 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
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 if (inActiveChain()) 997 if (inActiveChain())
998 doc.activeChainNodeDetached(this); 998 doc.activeChainNodeDetached(this);
999 doc.userActionElements().didDetach(this); 999 doc.userActionElements().didDetach(this);
1000 } 1000 }
1001 } 1001 }
1002 1002
1003 setStyleChange(NeedsReattachStyleChange); 1003 setStyleChange(NeedsReattachStyleChange);
1004 setChildNeedsStyleRecalc(); 1004 setChildNeedsStyleRecalc();
1005 1005
1006 if (StyleResolver* resolver = document().styleResolver()) 1006 if (StyleResolver* resolver = document().styleResolver())
1007 resolver->ruleFeatureSet().clearStyleInvalidation(this); 1007 resolver->ruleFeatureSet().styleInvalidator().clearInvalidation(*this);
1008 1008
1009 #ifndef NDEBUG 1009 #ifndef NDEBUG
1010 detachingNode = 0; 1010 detachingNode = 0;
1011 #endif 1011 #endif
1012 } 1012 }
1013 1013
1014 void Node::reattachWhitespaceSiblings(Text* start) 1014 void Node::reattachWhitespaceSiblings(Text* start)
1015 { 1015 {
1016 for (Node* sibling = start; sibling; sibling = sibling->nextSibling()) { 1016 for (Node* sibling = start; sibling; sibling = sibling->nextSibling()) {
1017 if (sibling->isTextNode() && toText(sibling)->containsOnlyWhitespace()) { 1017 if (sibling->isTextNode() && toText(sibling)->containsOnlyWhitespace()) {
(...skipping 1506 matching lines...) Expand 10 before | Expand all | Expand 10 after
2524 node->showTreeForThis(); 2524 node->showTreeForThis();
2525 } 2525 }
2526 2526
2527 void showNodePath(const WebCore::Node* node) 2527 void showNodePath(const WebCore::Node* node)
2528 { 2528 {
2529 if (node) 2529 if (node)
2530 node->showNodePathForThis(); 2530 node->showNodePathForThis();
2531 } 2531 }
2532 2532
2533 #endif 2533 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698