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

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

Issue 1111643003: Move StyleInvalidator to StyleEngine. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Avoid calling ensureUpdatedRuleFeatureSet multiple times 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
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/StyleEngine.h » ('j') | 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #include "core/dom/ElementRareData.h" 46 #include "core/dom/ElementRareData.h"
47 #include "core/dom/ElementTraversal.h" 47 #include "core/dom/ElementTraversal.h"
48 #include "core/dom/ExceptionCode.h" 48 #include "core/dom/ExceptionCode.h"
49 #include "core/dom/LayoutTreeBuilderTraversal.h" 49 #include "core/dom/LayoutTreeBuilderTraversal.h"
50 #include "core/dom/LiveNodeList.h" 50 #include "core/dom/LiveNodeList.h"
51 #include "core/dom/NodeRareData.h" 51 #include "core/dom/NodeRareData.h"
52 #include "core/dom/NodeTraversal.h" 52 #include "core/dom/NodeTraversal.h"
53 #include "core/dom/ProcessingInstruction.h" 53 #include "core/dom/ProcessingInstruction.h"
54 #include "core/dom/Range.h" 54 #include "core/dom/Range.h"
55 #include "core/dom/StaticNodeList.h" 55 #include "core/dom/StaticNodeList.h"
56 #include "core/dom/StyleEngine.h"
56 #include "core/dom/TemplateContentDocumentFragment.h" 57 #include "core/dom/TemplateContentDocumentFragment.h"
57 #include "core/dom/Text.h" 58 #include "core/dom/Text.h"
58 #include "core/dom/TreeScopeAdopter.h" 59 #include "core/dom/TreeScopeAdopter.h"
59 #include "core/dom/UserActionElementSet.h" 60 #include "core/dom/UserActionElementSet.h"
60 #include "core/dom/shadow/ComposedTreeTraversal.h" 61 #include "core/dom/shadow/ComposedTreeTraversal.h"
61 #include "core/dom/shadow/ElementShadow.h" 62 #include "core/dom/shadow/ElementShadow.h"
62 #include "core/dom/shadow/InsertionPoint.h" 63 #include "core/dom/shadow/InsertionPoint.h"
63 #include "core/dom/shadow/ShadowRoot.h" 64 #include "core/dom/shadow/ShadowRoot.h"
64 #include "core/editing/htmlediting.h" 65 #include "core/editing/htmlediting.h"
65 #include "core/editing/markup.h" 66 #include "core/editing/markup.h"
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 doc.hoveredNodeDetached(this); 975 doc.hoveredNodeDetached(this);
975 if (inActiveChain()) 976 if (inActiveChain())
976 doc.activeChainNodeDetached(this); 977 doc.activeChainNodeDetached(this);
977 doc.userActionElements().didDetach(this); 978 doc.userActionElements().didDetach(this);
978 } 979 }
979 } 980 }
980 981
981 setStyleChange(NeedsReattachStyleChange); 982 setStyleChange(NeedsReattachStyleChange);
982 setChildNeedsStyleRecalc(); 983 setChildNeedsStyleRecalc();
983 984
984 if (StyleResolver* resolver = document().styleResolver()) 985 document().styleEngine().styleInvalidator().clearInvalidation(*this);
985 resolver->ruleFeatureSet().styleInvalidator().clearInvalidation(*this);
986 clearChildNeedsStyleInvalidation(); 986 clearChildNeedsStyleInvalidation();
987 clearNeedsStyleInvalidation(); 987 clearNeedsStyleInvalidation();
988 988
989 #if ENABLE(ASSERT) 989 #if ENABLE(ASSERT)
990 detachingNode = nullptr; 990 detachingNode = nullptr;
991 #endif 991 #endif
992 } 992 }
993 993
994 void Node::reattachWhitespaceSiblingsIfNeeded(Text* start) 994 void Node::reattachWhitespaceSiblingsIfNeeded(Text* start)
995 { 995 {
(...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after
2501 node->showTreeForThis(); 2501 node->showTreeForThis();
2502 } 2502 }
2503 2503
2504 void showNodePath(const blink::Node* node) 2504 void showNodePath(const blink::Node* node)
2505 { 2505 {
2506 if (node) 2506 if (node)
2507 node->showNodePathForThis(); 2507 node->showNodePathForThis();
2508 } 2508 }
2509 2509
2510 #endif 2510 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/StyleEngine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698