| OLD | NEW |
| 1 # Defines properties which are available on the Settings object. | 1 # Defines properties which are available on the Settings object. |
| 2 # | 2 # |
| 3 # Please think carefully before adding a new Setting. Some questions to | 3 # Please think carefully before adding a new Setting. Some questions to |
| 4 # consider are: | 4 # consider are: |
| 5 # - Should this be a RuntimeEnabledFeature instead? Settings are for things | 5 # - Should this be a RuntimeEnabledFeature instead? Settings are for things |
| 6 # which we support either values of at runtime. Features are set at renderer | 6 # which we support either values of at runtime. Features are set at renderer |
| 7 # process startup and are never changed. Features also tend to be set to a | 7 # process startup and are never changed. Features also tend to be set to a |
| 8 # value based on the platform or the stability of the code in question, where | 8 # value based on the platform or the stability of the code in question, where |
| 9 # as settings both codepaths need to be stable. | 9 # as settings both codepaths need to be stable. |
| 10 # - How will you ensure test coverage of all relevant values of your setting? | 10 # - How will you ensure test coverage of all relevant values of your setting? |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 # Number of pixels below which 2D canvas is rendered in software | 44 # Number of pixels below which 2D canvas is rendered in software |
| 45 # even if hardware acceleration is enabled. | 45 # even if hardware acceleration is enabled. |
| 46 # Hardware acceleration is useful for large canvases where it can avoid the | 46 # Hardware acceleration is useful for large canvases where it can avoid the |
| 47 # pixel bandwidth between the CPU and GPU. But GPU acceleration comes at | 47 # pixel bandwidth between the CPU and GPU. But GPU acceleration comes at |
| 48 # a price - extra back-buffer and texture copy. Small canvases are also | 48 # a price - extra back-buffer and texture copy. Small canvases are also |
| 49 # widely used for stylized fonts. Anti-aliasing text in hardware at that | 49 # widely used for stylized fonts. Anti-aliasing text in hardware at that |
| 50 # scale is generally slower. So below a certain size it is better to | 50 # scale is generally slower. So below a certain size it is better to |
| 51 # draw canvas in software. | 51 # draw canvas in software. |
| 52 minimumAccelerated2dCanvasSize type=int, initial=257*256 | 52 minimumAccelerated2dCanvasSize type=int, initial=257*256 |
| 53 | 53 |
| 54 # The layout width used with --enable-viewport when no viewport meta tag was def
ined. | |
| 55 # FIXME: This should get the value from the @viewport UA sheet instead. | |
| 56 layoutFallbackWidth type=int, initial=980 | |
| 57 | |
| 58 minimumFontSize type=int, initial=0, invalidate=Style | 54 minimumFontSize type=int, initial=0, invalidate=Style |
| 59 minimumLogicalFontSize type=int, initial=0, invalidate=Style | 55 minimumLogicalFontSize type=int, initial=0, invalidate=Style |
| 60 defaultFontSize type=int, initial=0, invalidate=Style | 56 defaultFontSize type=int, initial=0, invalidate=Style |
| 61 defaultFixedFontSize type=int, initial=0, invalidate=Style | 57 defaultFixedFontSize type=int, initial=0, invalidate=Style |
| 62 | 58 |
| 63 editingBehaviorType type=EditingBehaviorType, initial=editingBehaviorTypeForPlat
form() | 59 editingBehaviorType type=EditingBehaviorType, initial=editingBehaviorTypeForPlat
form() |
| 64 | 60 |
| 65 caretBrowsingEnabled initial=false | 61 caretBrowsingEnabled initial=false |
| 66 localStorageEnabled initial=false | 62 localStorageEnabled initial=false |
| 67 allowUniversalAccessFromFileURLs initial=true | 63 allowUniversalAccessFromFileURLs initial=true |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 | 286 |
| 291 # Clients that execute script should call ScriptController::canExecuteScripts() | 287 # Clients that execute script should call ScriptController::canExecuteScripts() |
| 292 # instead of this function. ScriptController::canExecuteScripts() checks the | 288 # instead of this function. ScriptController::canExecuteScripts() checks the |
| 293 # HTML sandbox, plug-in sandboxing, and other important details. | 289 # HTML sandbox, plug-in sandboxing, and other important details. |
| 294 scriptEnabled initial=false, invalidate=ScriptEnable | 290 scriptEnabled initial=false, invalidate=ScriptEnable |
| 295 | 291 |
| 296 # Compensates for poor text legibility on mobile devices. This value is | 292 # Compensates for poor text legibility on mobile devices. This value is |
| 297 # multiplied by the font scale factor when performing text autosizing of | 293 # multiplied by the font scale factor when performing text autosizing of |
| 298 # websites that do not set an explicit viewport description. | 294 # websites that do not set an explicit viewport description. |
| 299 deviceScaleAdjustment type=double, initial=1.0, invalidate=TextAutosizing | 295 deviceScaleAdjustment type=double, initial=1.0, invalidate=TextAutosizing |
| OLD | NEW |