Add a new setting, AntialiasedFontDilationEnabled, exposed via WK2.
[WebKit-https.git] / Source / WebCore / page / Settings.in
1 # FIXME: Add support for global settings.
2 # FIXME: Add support for custom getters/setters.
3
4 defaultTextEncodingName type=String
5 ftpDirectoryTemplatePath type=String
6 localStorageDatabasePath type=String
7 editableLinkBehavior type=EditableLinkBehavior, initial=EditableLinkDefaultBehavior
8 textDirectionSubmenuInclusionBehavior type=TextDirectionSubmenuInclusionBehavior, initial=TextDirectionSubmenuAutomaticallyIncluded
9 passwordEchoDurationInSeconds type=double, initial=1
10
11 # Sets the magnification value for validation message timer.  If the
12 # magnification value is N, a validation message disappears automatically after
13 # <message length> * N / 1000 seconds.  If N is equal to or less than 0, a
14 # validation message doesn't disappears automaticaly.
15 validationMessageTimerMagnification type=int, initial=50
16
17 # Number of pixels below which 2D canvas is rendered in software
18 # even if hardware acceleration is enabled.
19 # Hardware acceleration is useful for large canvases where it can avoid the
20 # pixel bandwidth between the CPU and GPU. But GPU acceleration comes at
21 # a price - extra back-buffer and texture copy. Small canvases are also
22 # widely used for stylized fonts. Anti-aliasing text in hardware at that
23 # scale is generally slower. So below a certain size it is better to
24 # draw canvas in software.
25 minimumAccelerated2dCanvasSize type=int, initial=257*256
26
27 layoutFallbackWidth type=int, initial=980
28 deviceWidth type=int, initial=0
29 deviceHeight type=int, initial=0
30
31 # Allow clients concerned with memory consumption to set a quota on session storage
32 # since the memory used won't be released until the Page is destroyed.
33 sessionStorageQuota type=unsigned, initial=StorageMap::noQuota
34
35 minimumFontSize type=int, initial=0, setNeedsStyleRecalcInAllFrames=1
36 minimumLogicalFontSize type=int, initial=0, setNeedsStyleRecalcInAllFrames=1
37 defaultFontSize type=int, initial=0, setNeedsStyleRecalcInAllFrames=1
38 defaultFixedFontSize type=int, initial=0, setNeedsStyleRecalcInAllFrames=1
39 antialiasedFontDilationEnabled type=bool, initial=true, setNeedsStyleRecalcInAllFrames=1
40
41 editingBehaviorType type=EditingBehaviorType, initial=editingBehaviorTypeForPlatform()
42 maximumHTMLParserDOMTreeDepth type=unsigned, initial=defaultMaximumHTMLParserDOMTreeDepth
43
44 # This setting only affects site icon image loading if loadsImagesAutomatically setting is false and this setting is true.
45 # All other permutations still heed loadsImagesAutomatically setting.
46 loadsSiteIconsIgnoringImageLoadingSetting initial=false
47
48 caretBrowsingEnabled initial=false
49 preventKeyboardDOMEventDispatch initial=false
50 localStorageEnabled initial=false
51 allowUniversalAccessFromFileURLs initial=true
52 allowFileAccessFromFileURLs initial=true
53 javaScriptCanOpenWindowsAutomatically initial=false
54 javaScriptCanAccessClipboard initial=false
55 shouldPrintBackgrounds initial=false
56 usesDashboardBackwardCompatibilityMode initial=false, conditional=DASHBOARD_SUPPORT
57
58 textAreasAreResizable initial=false, setNeedsStyleRecalcInAllFrames=1
59 authorAndUserStylesEnabled initial=true, setNeedsStyleRecalcInAllFrames=1
60 acceleratedCompositingEnabled initial=true, setNeedsStyleRecalcInAllFrames=1
61 acceleratedCompositedAnimationsEnabled initial=true, setNeedsStyleRecalcInAllFrames=1
62 showDebugBorders initial=false, setNeedsStyleRecalcInAllFrames=1
63 showRepaintCounter initial=false, setNeedsStyleRecalcInAllFrames=1
64 visibleDebugOverlayRegions type=DebugOverlayRegions, initial=0
65
66 # This is a quirk we are pro-actively applying to old applications. It changes keyboard event dispatching,
67 # making keyIdentifier available on keypress events, making charCode available on keydown/keyup events,
68 # and getting keypress dispatched in more cases.
69 needsKeyboardEventDisambiguationQuirks initial=false
70
71 treatsAnyTextCSSLinkAsStylesheet initial=false
72 shrinksStandaloneImagesToFit initial=true
73 pageCacheSupportsPlugins initial=false
74 showsURLsInToolTips initial=false
75 showsToolTipOverTruncatedText initial=false
76 forceFTPDirectoryListings initial=false
77 developerExtrasEnabled initial=false
78 scriptMarkupEnabled initial=true
79 needsSiteSpecificQuirks initial=false
80 domTimersThrottlingEnabled initial=true
81 webArchiveDebugModeEnabled initial=false, conditional=WEB_ARCHIVE
82 localFileContentSniffingEnabled initial=false
83 offlineWebApplicationCacheEnabled initial=false
84 enforceCSSMIMETypeInNoQuirksMode initial=true
85 usesEncodingDetector initial=false
86 allowScriptsToCloseWindows initial=false
87 canvasUsesAcceleratedDrawing initial=false
88 acceleratedDrawingEnabled initial=false
89 acceleratedFiltersEnabled initial=false
90 useLegacyTextAlignPositionedElementBehavior initial=false
91 javaScriptRuntimeFlags type=JSC::RuntimeFlags
92
93 # FIXME: This should really be disabled by default as it makes platforms that don't support the feature download files
94 # they can't use by. Leaving enabled for now to not change existing behavior.
95 downloadableBinaryFontsEnabled initial=true
96
97 xssAuditorEnabled initial=false
98 unsafePluginPastingEnabled initial=true
99 acceleratedCompositingForFixedPositionEnabled initial=defaultAcceleratedCompositingForFixedPositionEnabled
100 acceleratedCompositingForOverflowScrollEnabled initial=false
101 rubberBandingForSubScrollableRegionsEnabled initial=true, conditional=RUBBER_BANDING
102
103 experimentalNotificationsEnabled initial=false
104 webGLEnabled initial=false
105 webGLErrorsToConsoleEnabled initial=true
106 openGLMultisamplingEnabled initial=true
107 privilegedWebGLExtensionsEnabled initial=false
108 forceSoftwareWebGLRendering initial=false
109 accelerated2dCanvasEnabled initial=false
110 antialiased2dCanvasEnabled initial=true
111 loadDeferringEnabled initial=true
112 webAudioEnabled initial=false
113 paginateDuringLayoutEnabled initial=false
114 fullScreenEnabled initial=false, conditional=FULLSCREEN_API
115 asynchronousSpellCheckingEnabled initial=false
116 mediaStreamEnabled initial=false
117
118 # This feature requires an implementation of ValidationMessageClient.
119 interactiveFormValidationEnabled initial=false
120
121 usePreHTML5ParserQuirks initial=false
122 hyperlinkAuditingEnabled initial=false
123 crossOriginCheckInGetMatchedCSSRulesDisabled initial=false
124 forceCompositingMode initial=false
125 shouldInjectUserScriptsInInitialEmptyDocument initial=false
126 fixedElementsLayoutRelativeToFrame initial=false
127 allowDisplayOfInsecureContent initial=false
128 allowRunningOfInsecureContent initial=false
129 mediaPlaybackRequiresUserGesture initial=defaultMediaPlaybackRequiresUserGesture
130 mediaPlaybackAllowsInline initial=defaultMediaPlaybackAllowsInline
131 allowsAlternateFullscreen initial=defaultAllowsAlternateFullscreen
132 passwordEchoEnabled initial=false
133 suppressesIncrementalRendering initial=false
134 incrementalRenderingSuppressionTimeoutInSeconds type=double, initial=defaultIncrementalRenderingSuppressionTimeoutInSeconds
135 backspaceKeyNavigationEnabled initial=true
136 shouldDisplaySubtitles initial=false, conditional=VIDEO_TRACK
137 shouldDisplayCaptions initial=false, conditional=VIDEO_TRACK
138 shouldDisplayTextDescriptions initial=false, conditional=VIDEO_TRACK
139 scrollingCoordinatorEnabled initial=false
140 scrollingTreeIncludesFrames initial=defaultScrollingTreeIncludesFrames
141 scrollAnimatorEnabled initial=true, conditional=SMOOTH_SCROLLING
142 forceUpdateScrollbarsOnMainThreadForPerformanceTesting initial=false
143 notificationsEnabled initial=true
144
145 # Some apps needs isLoadingInAPISense to account for active subresource loaders.
146 needsIsLoadingInAPISenseQuirk initial=false
147
148 shouldRespectImageOrientation initial=defaultShouldRespectImageOrientation
149 imageSubsamplingEnabled initial=defaultImageSubsamplingEnabled
150 wantsBalancedSetDefersLoadingBehavior initial=false
151 requestAnimationFrameEnabled initial=true
152
153 fixedPositionCreatesStackingContext initial=defaultFixedPositionCreatesStackingContext
154 syncXHRInDocumentsEnabled initial=true
155 cookieEnabled initial=true
156 mediaEnabled initial=true
157 DOMPasteAllowed initial=false
158
159 # When enabled, window.blur() does not change focus, and
160 # window.focus() only changes focus when invoked from the context that
161 # created the window.
162 windowFocusRestricted initial=true
163
164 diagnosticLoggingEnabled initial=false
165 applyDeviceScaleFactorInCompositor initial=true
166 delegatesPageScaling initial=false
167 plugInSnapshottingEnabled initial=false
168 snapshotAllPlugIns initial=false
169 autostartOriginPlugInSnapshottingEnabled initial=true
170 primaryPlugInSnapshotDetectionEnabled initial=true
171 maximumPlugInSnapshotAttempts type=unsigned, initial=20
172 frameFlatteningEnabled initial=false
173
174 allowCustomScrollbarInMainFrame initial=true
175 webSecurityEnabled initial=true
176 spatialNavigationEnabled initial=false
177
178 autoscrollForDragAndDropEnabled initial=false
179
180 unifiedTextCheckerEnabled initial=defaultUnifiedTextCheckerEnabled
181
182 logsPageMessagesToSystemConsoleEnabled initial=false
183
184 backForwardCacheExpirationInterval type=double, initial=1800
185
186 # Some apps could have a default video poster if it is not set.
187 defaultVideoPosterURL type=String
188
189 smartInsertDeleteEnabled initial=defaultSmartInsertDeleteEnabled
190 selectTrailingWhitespaceEnabled initial=defaultSelectTrailingWhitespaceEnabled
191
192 selectionIncludesAltImageText initial=true
193 useLegacyBackgroundSizeShorthandBehavior initial=false
194 fixedBackgroundsPaintRelativeToDocument initial=defaultFixedBackgroundsPaintRelativeToDocument
195
196 minimumZoomFontSize type=float, initial=15, conditional=IOS_TEXT_AUTOSIZING
197
198 simpleLineLayoutEnabled initial=true, setNeedsStyleRecalcInAllFrames=1
199 simpleLineLayoutDebugBordersEnabled initial=false, setNeedsStyleRecalcInAllFrames=1
200
201 subpixelCSSOMElementMetricsEnabled initial=false
202
203 mediaSourceEnabled initial=true, conditional=MEDIA_SOURCE
204
205 # FIXME: Rename to allowMultiElementImplicitFormSubmission once we upstream the iOS changes to WebView.mm.
206 allowMultiElementImplicitSubmission initial=false
207
208 mediaPlaybackAllowsAirPlay initial=true, conditional=WIRELESS_PLAYBACK_TARGET
209
210 shouldConvertPositionStyleOnCopy initial=false
211
212 maxParseDuration type=double, initial=-1
213 standalone initial=false
214 telephoneNumberParsingEnabled initial=false
215 mediaDataLoadsAutomatically initial=false
216 shouldTransformsAffectOverflow initial=true
217 shouldDispatchJavaScriptWindowOnErrorEvents initial=false
218 alwaysUseAcceleratedOverflowScroll initial=false
219 imageControlsEnabled initial=false, conditional=SERVICE_CONTROLS
220
221 enableInheritURIQueryComponent initial=false
222
223 aggressiveTileRetentionEnabled initial=false
224 temporaryTileCohortRetentionEnabled initial=true
225
226 useImageDocumentForSubframePDF initial=false
227
228 # Allow SourceBuffers to store up to 304MB each, enough for approximately five minutes
229 # of 1080p video and stereo audio.
230 maximumSourceBufferSize type=int, initial=318767104, conditional=MEDIA_SOURCE
231
232 longMousePressEnabled initial=false
233
234 serviceControlsEnabled initial=false, conditional=SERVICE_CONTROLS
235
236 ignoreViewportScalingConstraints initial=false
237
238 appleMailPaginationQuirkEnabled initial=false
239
240 attachmentElementEnabled initial=true, conditional=ATTACHMENT_ELEMENT
241
242 newBlockInsideInlineModelEnabled initial=false, setNeedsStyleRecalcInAllFrames=1
243