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

Unified Diff: sky/engine/core/dom/Node.cpp

Issue 712173002: Remove StyleInvalidator machinery. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/dom/Node.h ('k') | sky/engine/core/dom/StyleEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Node.cpp
diff --git a/sky/engine/core/dom/Node.cpp b/sky/engine/core/dom/Node.cpp
index 880e02f6e4ac0ee7cb502fffb5a6d374165e87d0..fbd239e253f43796ad012c4aa296db4ca610fbe0 100644
--- a/sky/engine/core/dom/Node.cpp
+++ b/sky/engine/core/dom/Node.cpp
@@ -503,19 +503,6 @@ void Node::setIsLink(bool isLink)
setFlag(isLink, IsLinkFlag);
}
-void Node::setNeedsStyleInvalidation()
-{
- setFlag(NeedsStyleInvalidationFlag);
- markAncestorsWithChildNeedsStyleInvalidation();
-}
-
-void Node::markAncestorsWithChildNeedsStyleInvalidation()
-{
- for (Node* node = parentOrShadowHostNode(); node && !node->childNeedsStyleInvalidation(); node = node->parentOrShadowHostNode())
- node->setChildNeedsStyleInvalidation();
- document().scheduleRenderTreeUpdateIfNeeded();
-}
-
void Node::markAncestorsWithChildNeedsDistributionRecalc()
{
for (Node* node = this; node && !node->childNeedsDistributionRecalc(); node = node->parentOrShadowHostNode())
@@ -776,11 +763,6 @@ void Node::detach(const AttachContext& context)
setStyleChange(NeedsReattachStyleChange);
setChildNeedsStyleRecalc();
- if (StyleResolver* resolver = document().styleResolver())
- resolver->ruleFeatureSet().styleInvalidator().clearInvalidation(*this);
- clearChildNeedsStyleInvalidation();
- clearNeedsStyleInvalidation();
-
#if ENABLE(ASSERT)
detachingNode = 0;
#endif
« no previous file with comments | « sky/engine/core/dom/Node.h ('k') | sky/engine/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698