| Index: Source/core/html/HTMLMetaElement-in.cpp
|
| diff --git a/Source/core/html/HTMLMetaElement-in.cpp b/Source/core/html/HTMLMetaElement-in.cpp
|
| index d63713d0ee7dffdbb1dfc52cb83bfdb52c03fc16..9575a9142c93fc0e3297bdc9cd45da0f89b0290b 100644
|
| --- a/Source/core/html/HTMLMetaElement-in.cpp
|
| +++ b/Source/core/html/HTMLMetaElement-in.cpp
|
| @@ -388,9 +388,6 @@ void HTMLMetaElement::processViewportContentAttribute(const String& content, Vie
|
| {
|
| ASSERT(!content.isNull());
|
|
|
| - if (!document().settings())
|
| - return;
|
| -
|
| if (!document().shouldOverrideLegacyDescription(origin))
|
| return;
|
|
|
| @@ -408,18 +405,6 @@ void HTMLMetaElement::processViewportContentAttribute(const String& content, Vie
|
| descriptionFromLegacyTag.minZoom = std::min(descriptionFromLegacyTag.minZoom, float(5));
|
| }
|
|
|
| - const Settings* settings = document().settings();
|
| -
|
| - if (descriptionFromLegacyTag.maxWidth.isAuto()) {
|
| - if (descriptionFromLegacyTag.zoom == ViewportDescription::ValueAuto) {
|
| - descriptionFromLegacyTag.minWidth = Length(ExtendToZoom);
|
| - descriptionFromLegacyTag.maxWidth = Length(settings->layoutFallbackWidth(), Fixed);
|
| - } else if (descriptionFromLegacyTag.maxHeight.isAuto()) {
|
| - descriptionFromLegacyTag.minWidth = Length(ExtendToZoom);
|
| - descriptionFromLegacyTag.maxWidth = Length(ExtendToZoom);
|
| - }
|
| - }
|
| -
|
| document().setViewportDescription(descriptionFromLegacyTag);
|
| }
|
|
|
|
|