Index: Source/core/html/MediaDocument.cpp |
diff --git a/Source/core/html/MediaDocument.cpp b/Source/core/html/MediaDocument.cpp |
index 4be22afc3f12574c744c81be4b02ffeb936e6b61..aeacbcfec72f6fb0448537c6d18f9004811ddb07 100644 |
--- a/Source/core/html/MediaDocument.cpp |
+++ b/Source/core/html/MediaDocument.cpp |
@@ -76,7 +76,15 @@ void MediaDocumentParser::createDocumentStructure() |
if (document()->frame()) |
document()->frame()->loader()->dispatchDocumentElementAvailable(); |
- |
+ |
+ RefPtr<Element> head = document()->createElement(headTag, false); |
+ rootElement->appendChild(head, IGNORE_EXCEPTION); |
+ |
+ RefPtr<Element> meta = document()->createElement(metaTag, false); |
+ meta->setAttribute(nameAttr, "viewport"); |
+ meta->setAttribute(contentAttr, "width=device-width"); |
+ head->appendChild(meta, IGNORE_EXCEPTION); |
+ |
RefPtr<Element> body = document()->createElement(bodyTag, false); |
rootElement->appendChild(body, IGNORE_EXCEPTION); |