WebFrame.setVisualZoomLevelLimits sets user-agent scale constraints (#12488)

Fixes #11216.
This commit is contained in:
Jeremy Apthorp 2018-04-02 15:20:13 -07:00 committed by Shelley Vohr
parent fbff355742
commit a7352e57d5

View file

@ -159,6 +159,7 @@ double WebFrame::GetZoomFactor() const {
void WebFrame::SetVisualZoomLevelLimits(double min_level, double max_level) {
web_frame_->View()->SetDefaultPageScaleLimits(min_level, max_level);
web_frame_->View()->SetIgnoreViewportTagScaleLimits(true);
}
void WebFrame::SetLayoutZoomLevelLimits(double min_level, double max_level) {