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

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

Issue 16951003: Fix broken AttachContext from r152289 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Final patch Created 7 years, 6 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.h
diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h
index 62320d69a0650b60d90be5fa5c2fd077f01de6e5..978ddb034e27e7bb85854ae26e1ed328069beb8a 100644
--- a/Source/core/dom/Node.h
+++ b/Source/core/dom/Node.h
@@ -905,8 +905,11 @@ inline void Node::lazyReattachIfAttached()
inline void Node::lazyReattach(ShouldSetAttached shouldSetAttached)
{
+ AttachContext context;
+ context.performingReattach = true;
+
if (attached())
- detach();
+ detach(context);
lazyAttach(shouldSetAttached);
}

Powered by Google App Engine
This is Rietveld 408576698