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

Unified Diff: sky/engine/core/painting/LayoutRoot.cpp

Issue 1171643002: Make SkyShell stop crashing on scroll in Stocks2. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/LayoutRoot.cpp
diff --git a/sky/engine/core/painting/LayoutRoot.cpp b/sky/engine/core/painting/LayoutRoot.cpp
index a2eedc4ea9ab0e9d6fb8636a820f04182d01c14b..c3ab733308c9894a6717259b0c4ba7093562f1c2 100644
--- a/sky/engine/core/painting/LayoutRoot.cpp
+++ b/sky/engine/core/painting/LayoutRoot.cpp
@@ -37,6 +37,8 @@ LayoutRoot::LayoutRoot()
LayoutRoot::~LayoutRoot()
{
+ if (!m_document->needsAttach())
+ m_document->detach();
}
Element* LayoutRoot::rootElement() const
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698