Index: Source/core/frame/FrameView.cpp |
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp |
index 0aead4777869975461aa32155082b51948005ade..2feb28d6a8d15f8c31df29bb1f358555cff3d069 100644 |
--- a/Source/core/frame/FrameView.cpp |
+++ b/Source/core/frame/FrameView.cpp |
@@ -28,6 +28,7 @@ |
#include "core/frame/FrameView.h" |
#include "core/HTMLNames.h" |
+#include "core/MediaTypeNames.h" |
#include "core/accessibility/AXObjectCache.h" |
#include "core/css/FontFaceSet.h" |
#include "core/css/resolver/StyleResolver.h" |
@@ -105,7 +106,7 @@ FrameView::FrameView(LocalFrame* frame) |
, m_updateWidgetsTimer(this, &FrameView::updateWidgetsTimerFired) |
, m_isTransparent(false) |
, m_baseBackgroundColor(Color::white) |
- , m_mediaType("screen") |
+ , m_mediaType(MediaTypeNames::screen) |
, m_overflowStatusDirty(true) |
, m_viewportRenderer(0) |
, m_wasScrolledByUser(false) |
@@ -1105,7 +1106,7 @@ void FrameView::adjustMediaTypeForPrinting(bool printing) |
if (printing) { |
if (m_mediaTypeWhenNotPrinting.isNull()) |
m_mediaTypeWhenNotPrinting = mediaType(); |
- setMediaType("print"); |
+ setMediaType(MediaTypeNames::print); |
} else { |
if (!m_mediaTypeWhenNotPrinting.isNull()) |
setMediaType(m_mediaTypeWhenNotPrinting); |