| OLD | NEW |
| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 m_settings->setApplyPageScaleFactorInCompositor(applyPageScaleFactorInCompos
itor); | 151 m_settings->setApplyPageScaleFactorInCompositor(applyPageScaleFactorInCompos
itor); |
| 152 } | 152 } |
| 153 | 153 |
| 154 void WebSettingsImpl::setAutoZoomFocusedNodeToLegibleScale(bool autoZoomFocusedN
odeToLegibleScale) | 154 void WebSettingsImpl::setAutoZoomFocusedNodeToLegibleScale(bool autoZoomFocusedN
odeToLegibleScale) |
| 155 { | 155 { |
| 156 m_autoZoomFocusedNodeToLegibleScale = autoZoomFocusedNodeToLegibleScale; | 156 m_autoZoomFocusedNodeToLegibleScale = autoZoomFocusedNodeToLegibleScale; |
| 157 } | 157 } |
| 158 | 158 |
| 159 void WebSettingsImpl::setTextAutosizingEnabled(bool enabled) | 159 void WebSettingsImpl::setTextAutosizingEnabled(bool enabled) |
| 160 { | 160 { |
| 161 #if ENABLE(TEXT_AUTOSIZING) | |
| 162 m_settings->setTextAutosizingEnabled(enabled); | 161 m_settings->setTextAutosizingEnabled(enabled); |
| 163 #else | |
| 164 UNUSED_PARAM(enabled); | |
| 165 #endif | |
| 166 } | 162 } |
| 167 | 163 |
| 168 void WebSettingsImpl::setTextAutosizingFontScaleFactor(float fontScaleFactor) | 164 void WebSettingsImpl::setTextAutosizingFontScaleFactor(float fontScaleFactor) |
| 169 { | 165 { |
| 170 #if ENABLE(TEXT_AUTOSIZING) | |
| 171 m_settings->setTextAutosizingFontScaleFactor(fontScaleFactor); | 166 m_settings->setTextAutosizingFontScaleFactor(fontScaleFactor); |
| 172 #else | |
| 173 UNUSED_PARAM(fontScaleFactor); | |
| 174 #endif | |
| 175 } | 167 } |
| 176 | 168 |
| 177 void WebSettingsImpl::setDefaultTextEncodingName(const WebString& encoding) | 169 void WebSettingsImpl::setDefaultTextEncodingName(const WebString& encoding) |
| 178 { | 170 { |
| 179 m_settings->setDefaultTextEncodingName((String)encoding); | 171 m_settings->setDefaultTextEncodingName((String)encoding); |
| 180 } | 172 } |
| 181 | 173 |
| 182 void WebSettingsImpl::setJavaScriptEnabled(bool enabled) | 174 void WebSettingsImpl::setJavaScriptEnabled(bool enabled) |
| 183 { | 175 { |
| 184 m_settings->setScriptEnabled(enabled); | 176 m_settings->setScriptEnabled(enabled); |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 734 { | 726 { |
| 735 m_settings->setSelectionIncludesAltImageText(enabled); | 727 m_settings->setSelectionIncludesAltImageText(enabled); |
| 736 } | 728 } |
| 737 | 729 |
| 738 void WebSettingsImpl::setSmartInsertDeleteEnabled(bool enabled) | 730 void WebSettingsImpl::setSmartInsertDeleteEnabled(bool enabled) |
| 739 { | 731 { |
| 740 m_settings->setSmartInsertDeleteEnabled(enabled); | 732 m_settings->setSmartInsertDeleteEnabled(enabled); |
| 741 } | 733 } |
| 742 | 734 |
| 743 } // namespace WebKit | 735 } // namespace WebKit |
| OLD | NEW |