Lines Matching full:scale
471 } else if (key == "initial-scale") {
472 int scale = int(value.toFloat() * 100);
473 if (scale >= 1 && scale <= 1000) {
474 m_viewport_initial_scale = scale;
476 } else if (key == "minimum-scale") {
477 int scale = int(value.toFloat() * 100);
478 if (scale >= 1 && scale <= 1000) {
479 m_viewport_minimum_scale = scale;
481 } else if (key == "maximum-scale") {
482 int scale = int(value.toFloat() * 100);
483 if (scale >= 1 && scale <= 1000) {
484 m_viewport_maximum_scale = scale;
548 void Settings::setViewportInitialScale(int scale)
550 if (scale < 1 || scale > 1000)
553 m_viewport_initial_scale = scale;
556 void Settings::setViewportMinimumScale(int scale)
558 if (scale < 1 || scale > 1000)
561 m_viewport_minimum_scale = scale;
564 void Settings::setViewportMaximumScale(int scale)
566 if (scale < 1 || scale > 1000)
569 m_viewport_maximum_scale = scale;