Index: Source/core/frame/Settings.cpp |
diff --git a/Source/core/frame/Settings.cpp b/Source/core/frame/Settings.cpp |
old mode 100644 |
new mode 100755 |
index b7d8d76b6ab41ad056b74efc08d75e7b77a8dd37..f5a9d2cf4654c057d228d8bedc1993fbf393f9ba |
--- a/Source/core/frame/Settings.cpp |
+++ b/Source/core/frame/Settings.cpp |
@@ -26,7 +26,6 @@ |
#include "config.h" |
#include "core/frame/Settings.h" |
-#include "core/inspector/InspectorInstrumentation.h" |
#include "platform/scroll/ScrollbarTheme.h" |
namespace WebCore { |
@@ -65,16 +64,15 @@ static const bool defaultSelectTrailingWhitespaceEnabled = false; |
#endif |
Settings::Settings() |
- : m_deviceScaleAdjustment(1.0f) |
+ : m_openGLMultisamplingEnabled(false) |
#if HACK_FORCE_TEXT_AUTOSIZING_ON_DESKTOP |
, m_textAutosizingWindowSizeOverride(320, 480) |
+ SETTINGS_INITIALIZER_LIST |
, m_textAutosizingEnabled(true) |
#else |
+ SETTINGS_INITIALIZER_LIST |
, m_textAutosizingEnabled(false) |
#endif |
- SETTINGS_INITIALIZER_LIST |
- , m_isScriptEnabled(false) |
- , m_openGLMultisamplingEnabled(false) |
{ |
} |
@@ -96,26 +94,13 @@ void Settings::invalidate(SettingsDelegate::ChangeType changeType) |
m_delegate->settingsChanged(changeType); |
} |
-// This is a total hack and should be removed. |
-Page* Settings::pageOfShame() const |
-{ |
- if (!m_delegate) |
- return 0; |
- return m_delegate->page(); |
-} |
- |
void Settings::setTextAutosizingEnabled(bool textAutosizingEnabled) |
{ |
if (m_textAutosizingEnabled == textAutosizingEnabled) |
return; |
m_textAutosizingEnabled = textAutosizingEnabled; |
- invalidate(SettingsDelegate::StyleChange); |
-} |
- |
-bool Settings::textAutosizingEnabled() const |
-{ |
- return InspectorInstrumentation::overrideTextAutosizing(pageOfShame(), m_textAutosizingEnabled); |
+ invalidate(SettingsDelegate::TextAutosizingChange); |
} |
// FIXME: Move to Settings.in once make_settings can understand IntSize. |
@@ -128,23 +113,6 @@ void Settings::setTextAutosizingWindowSizeOverride(const IntSize& textAutosizing |
invalidate(SettingsDelegate::StyleChange); |
} |
-void Settings::setDeviceScaleAdjustment(float deviceScaleAdjustment) |
-{ |
- m_deviceScaleAdjustment = deviceScaleAdjustment; |
- invalidate(SettingsDelegate::TextAutosizingChange); |
-} |
- |
-float Settings::deviceScaleAdjustment() const |
-{ |
- return InspectorInstrumentation::overrideFontScaleFactor(pageOfShame(), m_deviceScaleAdjustment); |
-} |
- |
-void Settings::setScriptEnabled(bool isScriptEnabled) |
-{ |
- m_isScriptEnabled = isScriptEnabled; |
- InspectorInstrumentation::scriptsEnabled(pageOfShame(), m_isScriptEnabled); |
-} |
- |
void Settings::setMockScrollbarsEnabled(bool flag) |
{ |
ScrollbarTheme::setMockScrollbarsEnabled(flag); |