Index: Source/core/css/MediaValuesCached.cpp |
diff --git a/Source/core/css/MediaValuesCached.cpp b/Source/core/css/MediaValuesCached.cpp |
index 2e2811d2879200df05d2262c1d61df82a4d19a3e..60caa50af3008dcbc1deaafa788260fc6fd613c3 100644 |
--- a/Source/core/css/MediaValuesCached.cpp |
+++ b/Source/core/css/MediaValuesCached.cpp |
@@ -7,6 +7,7 @@ |
#include "core/css/CSSPrimitiveValue.h" |
#include "core/dom/Document.h" |
+#include "core/frame/LocalFrame.h" |
#include "core/html/imports/HTMLImportsController.h" |
#include "core/rendering/RenderObject.h" |
@@ -31,7 +32,9 @@ PassRefPtr<MediaValues> MediaValuesCached::create(Document& document) |
PassRefPtr<MediaValues> MediaValuesCached::create(LocalFrame* frame) |
{ |
- if (!frame) |
+ // FIXME - Added an assert here so we can better understand when a frame is present without its view(). |
+ ASSERT(!frame || frame->view()); |
+ if (!frame || !frame->view()) |
return adoptRef(new MediaValuesCached()); |
return adoptRef(new MediaValuesCached(frame)); |
} |