| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |