Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: Source/WebKit/chromium/src/WebSettingsImpl.cpp

Issue 13723004: Remove the ENABLE_TEXT_AUTOSIZING compile-time flag. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/WebKit/chromium/features.gypi ('k') | Source/WebKit/chromium/src/WebViewImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 m_settings->setApplyPageScaleFactorInCompositor(applyPageScaleFactorInCompos itor); 152 m_settings->setApplyPageScaleFactorInCompositor(applyPageScaleFactorInCompos itor);
153 } 153 }
154 154
155 void WebSettingsImpl::setAutoZoomFocusedNodeToLegibleScale(bool autoZoomFocusedN odeToLegibleScale) 155 void WebSettingsImpl::setAutoZoomFocusedNodeToLegibleScale(bool autoZoomFocusedN odeToLegibleScale)
156 { 156 {
157 m_autoZoomFocusedNodeToLegibleScale = autoZoomFocusedNodeToLegibleScale; 157 m_autoZoomFocusedNodeToLegibleScale = autoZoomFocusedNodeToLegibleScale;
158 } 158 }
159 159
160 void WebSettingsImpl::setTextAutosizingEnabled(bool enabled) 160 void WebSettingsImpl::setTextAutosizingEnabled(bool enabled)
161 { 161 {
162 #if ENABLE(TEXT_AUTOSIZING)
163 m_settings->setTextAutosizingEnabled(enabled); 162 m_settings->setTextAutosizingEnabled(enabled);
164 #else
165 UNUSED_PARAM(enabled);
166 #endif
167 } 163 }
168 164
169 void WebSettingsImpl::setTextAutosizingFontScaleFactor(float fontScaleFactor) 165 void WebSettingsImpl::setTextAutosizingFontScaleFactor(float fontScaleFactor)
170 { 166 {
171 #if ENABLE(TEXT_AUTOSIZING)
172 m_settings->setTextAutosizingFontScaleFactor(fontScaleFactor); 167 m_settings->setTextAutosizingFontScaleFactor(fontScaleFactor);
173 #else
174 UNUSED_PARAM(fontScaleFactor);
175 #endif
176 } 168 }
177 169
178 void WebSettingsImpl::setDefaultTextEncodingName(const WebString& encoding) 170 void WebSettingsImpl::setDefaultTextEncodingName(const WebString& encoding)
179 { 171 {
180 m_settings->setDefaultTextEncodingName((String)encoding); 172 m_settings->setDefaultTextEncodingName((String)encoding);
181 } 173 }
182 174
183 void WebSettingsImpl::setJavaScriptEnabled(bool enabled) 175 void WebSettingsImpl::setJavaScriptEnabled(bool enabled)
184 { 176 {
185 m_settings->setScriptEnabled(enabled); 177 m_settings->setScriptEnabled(enabled);
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 { 724 {
733 m_settings->setSelectionIncludesAltImageText(enabled); 725 m_settings->setSelectionIncludesAltImageText(enabled);
734 } 726 }
735 727
736 void WebSettingsImpl::setSmartInsertDeleteEnabled(bool enabled) 728 void WebSettingsImpl::setSmartInsertDeleteEnabled(bool enabled)
737 { 729 {
738 m_settings->setSmartInsertDeleteEnabled(enabled); 730 m_settings->setSmartInsertDeleteEnabled(enabled);
739 } 731 }
740 732
741 } // namespace WebKit 733 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/features.gypi ('k') | Source/WebKit/chromium/src/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698