float old_initial_scale =
GetPageScaleConstraintsSet().PageDefinedConstraints().initial_scale;
+
+#if BUILDFLAG(IS_TIZEN)
+ float old_min_scale =
+ GetPageScaleConstraintsSet().PageDefinedConstraints().minimum_scale;
+ float old_max_scale =
+ GetPageScaleConstraintsSet().PageDefinedConstraints().maximum_scale;
+#endif
+
GetPageScaleConstraintsSet().UpdatePageDefinedConstraints(description,
default_min_width);
SettingsImpl()->ViewportMetaNonUserScalableQuirk());
float new_initial_scale =
GetPageScaleConstraintsSet().PageDefinedConstraints().initial_scale;
+#if BUILDFLAG(IS_TIZEN)
+ float new_min_scale =
+ GetPageScaleConstraintsSet().PageDefinedConstraints().minimum_scale;
+ float new_max_scale =
+ GetPageScaleConstraintsSet().PageDefinedConstraints().maximum_scale;
+#endif
+
if (old_initial_scale != new_initial_scale && new_initial_scale != -1) {
GetPageScaleConstraintsSet().SetNeedsReset(true);
if (MainFrameImpl() && MainFrameImpl()->GetFrameView())
MainFrameImpl()->GetFrameView()->SetNeedsLayout();
}
+#if BUILDFLAG(IS_TIZEN)
+ else if (old_min_scale != -1 &&
+ (old_min_scale != new_min_scale || old_max_scale != new_max_scale)) {
+ if (MainFrameImpl() && MainFrameImpl()->GetFrameView()) {
+ MainFrameImpl()->GetFrameView()->SetNeedsLayout();
+ }
+ }
+#endif
if (does_composite_) {
MainFrameImpl()->FrameWidgetImpl()->UpdateViewportDescription(description);