Index: third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp |
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp |
index ff54a4ed06a4a8d8abde74ca375ab3d3e60aa0ec..2b186c406d53a934de73cb1c8435e7a20e064c85 100644 |
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp |
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp |
@@ -185,13 +185,10 @@ StyleResolver::StyleResolver(Document& document) |
m_printMediaType(false), |
m_styleSharingDepth(0) { |
FrameView* view = document.view(); |
- if (view) { |
- m_medium = new MediaQueryEvaluator(&view->frame()); |
- m_printMediaType = |
- equalIgnoringCase(view->mediaType(), MediaTypeNames::print); |
- } else { |
- m_medium = new MediaQueryEvaluator("all"); |
- } |
+ DCHECK(view); |
+ m_medium = new MediaQueryEvaluator(&view->frame()); |
+ m_printMediaType = |
+ equalIgnoringCase(view->mediaType(), MediaTypeNames::print); |
initWatchedSelectorRules(); |
} |