summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/page
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2011-06-07 16:28:27 +0100
committerSteve Block <steveblock@google.com>2011-06-07 16:39:23 +0100
commitcbb4d7cda345c2678aa649cc57bffce8ca84949a (patch)
tree2ce088f21ca9f4f3accd6c66ba90df7eee4920c2 /Source/WebCore/page
parentdfadaafc15c16563aba837f05c778eaa2a433a8b (diff)
downloadexternal_webkit-cbb4d7cda345c2678aa649cc57bffce8ca84949a.zip
external_webkit-cbb4d7cda345c2678aa649cc57bffce8ca84949a.tar.gz
external_webkit-cbb4d7cda345c2678aa649cc57bffce8ca84949a.tar.bz2
Move all Android modification to Settings to the end of the relevant block
This will ease future merges Change-Id: I7203cfb0cdc52140802a11cd35c64a9cfd502d30
Diffstat (limited to 'Source/WebCore/page')
-rw-r--r--Source/WebCore/page/Settings.cpp24
-rw-r--r--Source/WebCore/page/Settings.h59
2 files changed, 42 insertions, 41 deletions
diff --git a/Source/WebCore/page/Settings.cpp b/Source/WebCore/page/Settings.cpp
index 1db8a92..f0b489a 100644
--- a/Source/WebCore/page/Settings.cpp
+++ b/Source/WebCore/page/Settings.cpp
@@ -88,30 +88,21 @@ static EditingBehaviorType editingBehaviorTypeForPlatform()
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())
#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)
@@ -186,6 +177,15 @@ Settings::Settings(Page* page)
, m_usePreHTML5ParserQuirks(false)
, m_hyperlinkAuditingEnabled(false)
, m_crossOriginCheckInGetMatchedCSSRulesDisabled(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
diff --git a/Source/WebCore/page/Settings.h b/Source/WebCore/page/Settings.h
index aee749e..0e93249 100644
--- a/Source/WebCore/page/Settings.h
+++ b/Source/WebCore/page/Settings.h
@@ -455,15 +455,18 @@ 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;
+ 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 +480,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;
@@ -577,7 +556,29 @@ namespace WebCore {
bool m_usePreHTML5ParserQuirks: 1;
bool m_hyperlinkAuditingEnabled : 1;
bool m_crossOriginCheckInGetMatchedCSSRulesDisabled : 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