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

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

Issue 330093003: RenderView is null for import documents. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 | « LayoutTests/fast/css/resources/import-layout-with-pending-sheet.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 365e290fc1a94714532c9ed034b6ea318519f9da..f943e5b6a9a3cd4ab08cee1c700d7d687c9db51e 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -3455,7 +3455,10 @@ void Document::styleResolverChanged(StyleResolverUpdateMode updateMode)
// We need to manually repaint because we avoid doing all repaints in layout or style
// recalc while sheets are still loading to avoid FOUC.
m_pendingSheetLayout = IgnoreLayoutWithPendingSheets;
- renderView()->repaintViewAndCompositedLayers();
+
+ ASSERT(renderView() || importsController());
+ if (renderView())
+ renderView()->repaintViewAndCompositedLayers();
}
}
« no previous file with comments | « LayoutTests/fast/css/resources/import-layout-with-pending-sheet.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698