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

Unified Diff: Source/core/dom/Node.cpp

Issue 15159008: Node::lazyAttach shouldn't lie about being attached (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Missing commit Created 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index 3223aa73bd00b2596a25fb0b9d7f1404b47f02f1..f2da3b5397a4e05b474691e12461c03743d0894b 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -865,15 +865,9 @@ void Node::setNeedsStyleRecalc(StyleChangeType changeType)
markAncestorsWithChildNeedsStyleRecalc();
}
-void Node::lazyAttach(ShouldSetAttached shouldSetAttached)
+void Node::lazyAttach()
{
- for (Node* n = this; n; n = NodeTraversal::next(n, this)) {
- if (n->hasChildNodes())
- n->setChildNeedsStyleRecalc();
- n->setStyleChange(FullStyleChange);
- if (shouldSetAttached == SetAttached)
- n->setAttached();
- }
+ setStyleChange(FullStyleChange);
markAncestorsWithChildNeedsStyleRecalc();
}

Powered by Google App Engine
This is Rietveld 408576698