Settings::Settings(Page* page) : m_page(page) #ifdef ANDROID_LAYOUT , m_layoutAlgorithm(kLayoutFitColumnToScreen) #endif , m_editableLinkBehavior(EditableLinkDefaultBehavior) , m_textDirectionSubmenuInclusionBehavior(TextDirectionSubmenuAutomaticallyIncluded) , m_minimumFontSize(0) , m_minimumLogicalFontSize(0) , m_defaultFontSize(0) , m_defaultFixedFontSize(0) #ifdef ANDROID_LAYOUT , m_useWideViewport(false) #endif #ifdef ANDROID_MULTIPLE_WINDOWS , m_supportMultipleWindows(true) #endif #ifdef ANDROID_BLOCK_NETWORK_IMAGE , m_blockNetworkImage(false) #endif , m_maximumDecodedImageSize(numeric_limits<size_t>::max()) , m_localStorageQuota(5 * 1024 * 1024) // Suggested by the HTML5 spec. , m_pluginAllowedRunTime(numeric_limits<unsigned>::max()) , m_isJavaEnabled(false) , m_loadsImagesAutomatically(false) , m_privateBrowsingEnabled(false) , m_caretBrowsingEnabled(false) , m_areImagesEnabled(true) , m_arePluginsEnabled(false) , m_databasesEnabled(false) , m_localStorageEnabled(false) , m_isJavaScriptEnabled(false) , m_isWebSecurityEnabled(true) , m_allowUniversalAccessFromFileURLs(true) , m_javaScriptCanOpenWindowsAutomatically(false) , m_shouldPrintBackgrounds(false) , m_textAreasAreResizable(false) #if ENABLE(DASHBOARD_SUPPORT) , m_usesDashboardBackwardCompatibilityMode(false) #endif , m_needsAdobeFrameReloadingQuirk(false) , m_needsKeyboardEventDisambiguationQuirks(false) , m_treatsAnyTextCSSLinkAsStylesheet(false) , m_needsLeopardMailQuirks(false) , m_needsTigerMailQuirks(false) , m_isDOMPasteAllowed(false) , m_shrinksStandaloneImagesToFit(true) , m_usesPageCache(false) , m_showsURLsInToolTips(false) , m_forceFTPDirectoryListings(false) , m_developerExtrasEnabled(false) , m_authorAndUserStylesEnabled(true) , m_needsSiteSpecificQuirks(false) , m_fontRenderingMode(0) , m_frameSetFlatteningEnabled(false) , m_webArchiveDebugModeEnabled(false) , m_localFileContentSniffingEnabled(false) , m_inApplicationChromeMode(false) , m_offlineWebApplicationCacheEnabled(false) , m_shouldPaintCustomScrollbars(false) , m_zoomsTextOnly(false) , m_enforceCSSMIMETypeInStrictMode(true) , m_usesEncodingDetector(false) , m_allowScriptsToCloseWindows(false) , m_editingBehavior( #if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN)) // (PLATFORM(MAC) is always false in Chromium, hence the extra condition.) EditingMacBehavior #else EditingWindowsBehavior #endif ) // FIXME: This should really be disabled by default as it makes platforms that don't support the feature download files // they can't use by. Leaving enabled for now to not change existing behavior. , m_downloadableBinaryFontsEnabled(true) , m_xssAuditorEnabled(false) , m_acceleratedCompositingEnabled(true) , m_showDebugBorders(false) , m_showRepaintCounter(false) , m_experimentalNotificationsEnabled(false) , m_webGLEnabled(false) , m_geolocationEnabled(true) , m_loadDeferringEnabled(true) #ifdef ANDROID_PLUGINS , m_pluginsOnDemand(false) #endif , m_displayAutoPowerSaveMode(false) { // A Frame may not have been created yet, so we initialize the AtomicString // hash before trying to use it. AtomicString::init(); #ifdef ANDROID_META_SUPPORT resetMetadataSettings(); #endif }
Settings::Settings(Page* page) : m_page(page) , m_editableLinkBehavior(EditableLinkDefaultBehavior) , m_textDirectionSubmenuInclusionBehavior(TextDirectionSubmenuAutomaticallyIncluded) , m_minimumFontSize(0) , m_minimumLogicalFontSize(0) , m_defaultFontSize(0) , m_defaultFixedFontSize(0) , m_validationMessageTimerMagnification(50) , m_maximumDecodedImageSize(numeric_limits<size_t>::max()) #if ENABLE(DOM_STORAGE) , m_sessionStorageQuota(StorageMap::noQuota) #endif , m_pluginAllowedRunTime(numeric_limits<unsigned>::max()) , m_editingBehaviorType(editingBehaviorTypeForPlatform()) #ifdef ANDROID_LAYOUT , m_layoutAlgorithm(kLayoutFitColumnToScreen) #endif , m_isSpatialNavigationEnabled(false) , m_isJavaEnabled(false) , m_loadsImagesAutomatically(false) , m_loadsSiteIconsIgnoringImageLoadingSetting(false) , m_privateBrowsingEnabled(false) , m_caretBrowsingEnabled(false) , m_areImagesEnabled(true) , m_isMediaEnabled(true) , m_arePluginsEnabled(false) , m_localStorageEnabled(false) , m_isJavaScriptEnabled(false) , m_isWebSecurityEnabled(true) , m_allowUniversalAccessFromFileURLs(true) , m_allowFileAccessFromFileURLs(true) , m_javaScriptCanOpenWindowsAutomatically(false) , m_javaScriptCanAccessClipboard(false) , m_shouldPrintBackgrounds(false) , m_textAreasAreResizable(false) #if ENABLE(DASHBOARD_SUPPORT) , m_usesDashboardBackwardCompatibilityMode(false) #endif , m_needsAdobeFrameReloadingQuirk(false) , m_needsKeyboardEventDisambiguationQuirks(false) , m_treatsAnyTextCSSLinkAsStylesheet(false) , m_needsLeopardMailQuirks(false) , m_needsTigerMailQuirks(false) , m_isDOMPasteAllowed(false) , m_shrinksStandaloneImagesToFit(true) , m_usesPageCache(false) , m_showsURLsInToolTips(false) , m_forceFTPDirectoryListings(false) , m_developerExtrasEnabled(false) , m_authorAndUserStylesEnabled(true) , m_needsSiteSpecificQuirks(false) , m_fontRenderingMode(0) , m_frameFlatteningEnabled(false) , m_webArchiveDebugModeEnabled(false) , m_localFileContentSniffingEnabled(false) , m_inApplicationChromeMode(false) , m_offlineWebApplicationCacheEnabled(false) , m_shouldPaintCustomScrollbars(false) , m_enforceCSSMIMETypeInNoQuirksMode(true) , m_usesEncodingDetector(false) , m_allowScriptsToCloseWindows(false) , m_canvasUsesAcceleratedDrawing(false) , m_acceleratedDrawingEnabled(false) , m_rssSniffingnEnabled(false) //SAMSUNG_CHANGES #if ENABLE(SPELLCHECK) , m_isspellcheckenabled(false) // SAMSUNG CHANGES #endif // FIXME: This should really be disabled by default as it makes platforms that don't support the feature download files // they can't use by. Leaving enabled for now to not change existing behavior. , m_downloadableBinaryFontsEnabled(true) , m_xssAuditorEnabled(false) , m_acceleratedCompositingEnabled(true) , m_acceleratedCompositingFor3DTransformsEnabled(true) , m_acceleratedCompositingForVideoEnabled(true) , m_acceleratedCompositingForPluginsEnabled(true) , m_acceleratedCompositingForCanvasEnabled(true) , m_acceleratedCompositingForAnimationEnabled(true) , m_showDebugBorders(false) , m_showRepaintCounter(false) , m_experimentalNotificationsEnabled(false) , m_webGLEnabled(false) , m_openGLMultisamplingEnabled(true) , m_webAudioEnabled(false) , m_acceleratedCanvas2dEnabled(false) , m_loadDeferringEnabled(true) , m_tiledBackingStoreEnabled(false) , m_paginateDuringLayoutEnabled(false) , m_dnsPrefetchingEnabled(true) #if ENABLE(FULLSCREEN_API) , m_fullScreenAPIEnabled(false) #endif , m_asynchronousSpellCheckingEnabled(false) , m_memoryInfoEnabled(false) , m_interactiveFormValidation(true) , m_usePreHTML5ParserQuirks(false) , m_hyperlinkAuditingEnabled(false) , m_crossOriginCheckInGetMatchedCSSRulesDisabled(false) , m_useQuickLookResourceCachingQuirks(false) , m_forceCompositingMode(false) , m_shouldInjectUserScriptsInInitialEmptyDocument(false) #ifdef ANDROID_LAYOUT , m_useWideViewport(false) #endif #ifdef ANDROID_MULTIPLE_WINDOWS , m_supportMultipleWindows(true) #endif #ifdef ANDROID_BLOCK_NETWORK_IMAGE , m_blockNetworkImage(false) #endif #if ENABLE(WEB_AUTOFILL) , m_autoFillEnabled(false) #endif #ifdef ANDROID_PLUGINS , m_pluginsOnDemand(false) #endif #ifdef WEBKIT_TEXT_SIZE_ADJUST //SAMSUNG CHANGE :TEXT READABILITY >> ,m_TextReadability(false) //SAMSUNG CHANGE :TEXT READABILITY << #endif { // A Frame may not have been created yet, so we initialize the AtomicString // hash before trying to use it. AtomicString::init(); #ifdef ANDROID_META_SUPPORT m_default_format_detection = true; resetMetadataSettings(); #endif }
Settings::Settings(Page* page) : m_page(page) #ifdef ANDROID_LAYOUT , m_layoutAlgorithm(kLayoutFitColumnToScreen) #endif , m_editableLinkBehavior(EditableLinkDefaultBehavior) , m_textDirectionSubmenuInclusionBehavior(TextDirectionSubmenuAutomaticallyIncluded) , m_minimumFontSize(0) , m_minimumLogicalFontSize(0) , m_defaultFontSize(0) , m_defaultFixedFontSize(0) #ifdef ANDROID_LAYOUT , m_useWideViewport(false) #endif #ifdef ANDROID_MULTIPLE_WINDOWS , m_supportMultipleWindows(true) #endif #ifdef ANDROID_BLOCK_NETWORK_IMAGE , m_blockNetworkImage(false) #endif , m_isJavaEnabled(false) , m_loadsImagesAutomatically(false) , m_privateBrowsingEnabled(false) , m_arePluginsEnabled(false) , m_databasesEnabled(false) , m_localStorageEnabled(false) , m_isJavaScriptEnabled(false) , m_javaScriptCanOpenWindowsAutomatically(false) , m_shouldPrintBackgrounds(false) , m_textAreasAreResizable(false) #if ENABLE(DASHBOARD_SUPPORT) , m_usesDashboardBackwardCompatibilityMode(false) #endif , m_needsAdobeFrameReloadingQuirk(false) , m_needsKeyboardEventDisambiguationQuirks(false) , m_isDOMPasteAllowed(false) , m_shrinksStandaloneImagesToFit(true) , m_usesPageCache(false) , m_showsURLsInToolTips(false) , m_forceFTPDirectoryListings(false) , m_developerExtrasEnabled(false) , m_authorAndUserStylesEnabled(true) , m_needsSiteSpecificQuirks(false) , m_fontRenderingMode(0) , m_webArchiveDebugModeEnabled(false) , m_inApplicationChromeMode(false) , m_offlineWebApplicationCacheEnabled(false) , m_rangeMutationDisabledForOldAppleMail(false) , m_shouldPaintCustomScrollbars(false) , m_zoomsTextOnly(false) , m_enforceCSSMIMETypeInStrictMode(true) , m_maximumDecodedImageSize(std::numeric_limits<size_t>::max()) , m_needsIChatMemoryCacheCallsQuirk(false) { // A Frame may not have been created yet, so we initialize the AtomicString // hash before trying to use it. AtomicString::init(); #ifdef ANDROID_META_SUPPORT resetMetadataSettings(); #endif }