[iOS] Implement idempotent mode for text autosizing
[WebKit-https.git] / Source / WebCore / page / cocoa / SettingsBaseCocoa.mm
index 0e413d2..a27d303 100644 (file)
@@ -83,7 +83,12 @@ void SettingsBase::initializeDefaultFontFamilies()
 
 bool SettingsBase::defaultTextAutosizingEnabled()
 {
-    return !deviceHasIPadCapability() || [[PAL::getUIApplicationClass() sharedApplication] _isClassic];
+    return true;
+}
+
+bool SettingsBase::defaultTextAutosizingUsesIdempotentMode()
+{
+    return deviceHasIPadCapability() && ![[PAL::getUIApplicationClass() sharedApplication] _isClassic];
 }
 
 #endif