WebFrame.setVisualZoomLevelLimits sets user-agent scale constraints (#12488)
Fixes #11216.
This commit is contained in:
parent
fbff355742
commit
a7352e57d5
1 changed files with 1 additions and 0 deletions
|
@ -159,6 +159,7 @@ double WebFrame::GetZoomFactor() const {
|
||||||
|
|
||||||
void WebFrame::SetVisualZoomLevelLimits(double min_level, double max_level) {
|
void WebFrame::SetVisualZoomLevelLimits(double min_level, double max_level) {
|
||||||
web_frame_->View()->SetDefaultPageScaleLimits(min_level, max_level);
|
web_frame_->View()->SetDefaultPageScaleLimits(min_level, max_level);
|
||||||
|
web_frame_->View()->SetIgnoreViewportTagScaleLimits(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebFrame::SetLayoutZoomLevelLimits(double min_level, double max_level) {
|
void WebFrame::SetLayoutZoomLevelLimits(double min_level, double max_level) {
|
||||||
|
|
Loading…
Reference in a new issue