Skip to content
This repository was archived by the owner on Apr 3, 2020. It is now read-only.

Commit b8fedaf

Browse files
author
Raphael Kubo da Costa
committed
Merge pull request #24 from pozdnyakov/fix_the_viewport
Fix the --enable-viewport command line option
2 parents bc7b6c1 + 3a072fd commit b8fedaf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/web/WebSettingsImpl.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
#include "core/frame/Settings.h"
3535
#include "core/inspector/InspectorController.h"
36+
#include "platform/RuntimeEnabledFeatures.h"
3637
#include "platform/graphics/DeferredImageDecoder.h"
3738

3839
#include "public/platform/WebString.h"
@@ -615,6 +616,7 @@ void WebSettingsImpl::setMediaPlaybackRequiresUserGesture(bool required)
615616

616617
void WebSettingsImpl::setViewportEnabled(bool enabled)
617618
{
619+
RuntimeEnabledFeatures::setCSSViewportEnabled(enabled);
618620
m_settings->setViewportEnabled(enabled);
619621
}
620622

0 commit comments

Comments
 (0)