Index: sky/engine/core/painting/LayoutRoot.cpp |
diff --git a/sky/engine/core/painting/LayoutRoot.cpp b/sky/engine/core/painting/LayoutRoot.cpp |
index c3ab733308c9894a6717259b0c4ba7093562f1c2..333cf295304b6e7c738a7ceffa5e16a2f4d42dfd 100644 |
--- a/sky/engine/core/painting/LayoutRoot.cpp |
+++ b/sky/engine/core/painting/LayoutRoot.cpp |
@@ -10,6 +10,7 @@ |
#include "sky/engine/core/frame/FrameView.h" |
#include "sky/engine/core/frame/LocalFrame.h" |
#include "sky/engine/core/frame/Settings.h" |
+#include "sky/engine/core/painting/Canvas.h" |
#include "sky/engine/core/painting/PaintingTasks.h" |
#include "sky/engine/platform/geometry/IntRect.h" |
#include "third_party/skia/include/core/SkCanvas.h" |
@@ -81,7 +82,7 @@ void LayoutRoot::layout() |
void LayoutRoot::paint(Canvas* canvas) |
{ |
- if (m_document) |
+ if (m_document && canvas->skCanvas()) |
rootElement()->paint(canvas); |
} |