summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/page/Settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/page/Settings.h')
-rw-r--r--Source/WebCore/page/Settings.h80
1 files changed, 51 insertions, 29 deletions
diff --git a/Source/WebCore/page/Settings.h b/Source/WebCore/page/Settings.h
index aee749e..35446c5 100644
--- a/Source/WebCore/page/Settings.h
+++ b/Source/WebCore/page/Settings.h
@@ -351,6 +351,9 @@ namespace WebCore {
void setXSSAuditorEnabled(bool);
bool xssAuditorEnabled() const { return m_xssAuditorEnabled; }
+ void setCanvasUsesAcceleratedDrawing(bool);
+ bool canvasUsesAcceleratedDrawing() const { return m_canvasUsesAcceleratedDrawing; }
+
void setAcceleratedDrawingEnabled(bool);
bool acceleratedDrawingEnabled() const { return m_acceleratedDrawingEnabled; }
@@ -427,6 +430,14 @@ namespace WebCore {
// and http://webkit.org/b/40908
void setInteractiveFormValidationEnabled(bool flag) { m_interactiveFormValidation = flag; }
bool interactiveFormValidationEnabled() const { return m_interactiveFormValidation; }
+
+ // Sets the maginication value for validation message timer.
+ // If the maginication value is N, a validation message disappears
+ // automatically after <message length> * N / 1000 seconds. If N is
+ // equal to or less than 0, a validation message doesn't disappears
+ // automaticaly. The default value is 50.
+ void setValidationMessageTimerMagnification(int newValue) { m_validationMessageTimerMagnification = newValue; }
+ int validationMessageTimerMaginification() const { return m_validationMessageTimerMagnification; }
void setUsePreHTML5ParserQuirks(bool flag) { m_usePreHTML5ParserQuirks = flag; }
bool usePreHTML5ParserQuirks() const { return m_usePreHTML5ParserQuirks; }
@@ -436,6 +447,12 @@ namespace WebCore {
void setCrossOriginCheckInGetMatchedCSSRulesDisabled(bool flag) { m_crossOriginCheckInGetMatchedCSSRulesDisabled = flag; }
bool crossOriginCheckInGetMatchedCSSRulesDisabled() const { return m_crossOriginCheckInGetMatchedCSSRulesDisabled; }
+
+ void setUseQuickLookResourceCachingQuirks(bool flag) { m_useQuickLookResourceCachingQuirks = flag; }
+ bool useQuickLookResourceCachingQuirks() const { return m_useQuickLookResourceCachingQuirks; }
+
+ void setForceCompositingMode(bool flag) { m_forceCompositingMode = flag; }
+ bool forceCompositingMode() { return m_forceCompositingMode; }
#if ENABLE(WEB_AUTOFILL)
void setAutoFillEnabled(bool flag) { m_autoFillEnabled = flag; }
@@ -455,15 +472,19 @@ namespace WebCore {
AtomicString m_sansSerifFontFamily;
AtomicString m_cursiveFontFamily;
AtomicString m_fantasyFontFamily;
-#ifdef ANDROID_LAYOUT
- LayoutAlgorithm m_layoutAlgorithm;
-#endif
EditableLinkBehavior m_editableLinkBehavior;
TextDirectionSubmenuInclusionBehavior m_textDirectionSubmenuInclusionBehavior;
int m_minimumFontSize;
int m_minimumLogicalFontSize;
int m_defaultFontSize;
int m_defaultFixedFontSize;
+ int m_validationMessageTimerMagnification;
+ size_t m_maximumDecodedImageSize;
+#if ENABLE(DOM_STORAGE)
+ unsigned m_sessionStorageQuota;
+#endif
+ unsigned m_pluginAllowedRunTime;
+ unsigned m_editingBehaviorType;
#ifdef ANDROID_META_SUPPORT
// range is from 200 to 10,000. 0 is a special value means device-width.
// default is -1, which means undefined.
@@ -477,34 +498,10 @@ namespace WebCore {
int m_viewport_minimum_scale;
// range is from 1 to 1000 in percent. default is 0, which means undefined.
int m_viewport_maximum_scale;
- // default is yes
- bool m_viewport_user_scalable : 1;
- // range is from 70 to 400. 0 is a special value means device-dpi
- // default is -1, which means undefined.
- int m_viewport_target_densitydpi;
- // default is yes
- bool m_format_detection_telephone : 1;
- // default is yes
- bool m_format_detection_address : 1;
- // default is yes
- bool m_format_detection_email : 1;
- bool m_default_format_detection : 1;
#endif
#ifdef ANDROID_LAYOUT
- bool m_useWideViewport : 1;
-#endif
-#ifdef ANDROID_MULTIPLE_WINDOWS
- bool m_supportMultipleWindows : 1;
-#endif
-#ifdef ANDROID_BLOCK_NETWORK_IMAGE
- bool m_blockNetworkImage : 1;
-#endif
- size_t m_maximumDecodedImageSize;
-#if ENABLE(DOM_STORAGE)
- unsigned m_sessionStorageQuota;
+ LayoutAlgorithm m_layoutAlgorithm;
#endif
- unsigned m_pluginAllowedRunTime;
- unsigned m_editingBehaviorType;
bool m_isSpatialNavigationEnabled : 1;
bool m_isJavaEnabled : 1;
bool m_loadsImagesAutomatically : 1;
@@ -548,6 +545,7 @@ namespace WebCore {
bool m_enforceCSSMIMETypeInNoQuirksMode : 1;
bool m_usesEncodingDetector : 1;
bool m_allowScriptsToCloseWindows : 1;
+ bool m_canvasUsesAcceleratedDrawing : 1;
bool m_acceleratedDrawingEnabled : 1;
bool m_downloadableBinaryFontsEnabled : 1;
bool m_xssAuditorEnabled : 1;
@@ -577,7 +575,31 @@ namespace WebCore {
bool m_usePreHTML5ParserQuirks: 1;
bool m_hyperlinkAuditingEnabled : 1;
bool m_crossOriginCheckInGetMatchedCSSRulesDisabled : 1;
-
+ bool m_useQuickLookResourceCachingQuirks : 1;
+ bool m_forceCompositingMode : 1;
+#ifdef ANDROID_META_SUPPORT
+ // default is yes
+ bool m_viewport_user_scalable : 1;
+ // range is from 70 to 400. 0 is a special value means device-dpi
+ // default is -1, which means undefined.
+ int m_viewport_target_densitydpi;
+ // default is yes
+ bool m_format_detection_telephone : 1;
+ // default is yes
+ bool m_format_detection_address : 1;
+ // default is yes
+ bool m_format_detection_email : 1;
+ bool m_default_format_detection : 1;
+#endif
+#ifdef ANDROID_LAYOUT
+ bool m_useWideViewport : 1;
+#endif
+#ifdef ANDROID_MULTIPLE_WINDOWS
+ bool m_supportMultipleWindows : 1;
+#endif
+#ifdef ANDROID_BLOCK_NETWORK_IMAGE
+ bool m_blockNetworkImage : 1;
+#endif
#if ENABLE(WEB_AUTOFILL)
bool m_autoFillEnabled: 1;
#endif