| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 RuntimeEnabledFeatures::setExperimentalShadowDOMEnabled(isEnabled); | 211 RuntimeEnabledFeatures::setExperimentalShadowDOMEnabled(isEnabled); |
| 212 } | 212 } |
| 213 | 213 |
| 214 void InternalSettings::setStyleScopedEnabled(bool enabled) | 214 void InternalSettings::setStyleScopedEnabled(bool enabled) |
| 215 { | 215 { |
| 216 RuntimeEnabledFeatures::setStyleScopedEnabled(enabled); | 216 RuntimeEnabledFeatures::setStyleScopedEnabled(enabled); |
| 217 } | 217 } |
| 218 | 218 |
| 219 void InternalSettings::setTouchEventEmulationEnabled(bool enabled, ExceptionCode
& ec) | 219 void InternalSettings::setTouchEventEmulationEnabled(bool enabled, ExceptionCode
& ec) |
| 220 { | 220 { |
| 221 #if ENABLE(TOUCH_EVENTS) | |
| 222 InternalSettingsGuardForSettings(); | 221 InternalSettingsGuardForSettings(); |
| 223 settings()->setTouchEventEmulationEnabled(enabled); | 222 settings()->setTouchEventEmulationEnabled(enabled); |
| 224 #else | |
| 225 UNUSED_PARAM(enabled); | |
| 226 UNUSED_PARAM(ec); | |
| 227 #endif | |
| 228 } | 223 } |
| 229 | 224 |
| 230 typedef void (Settings::*SetFontFamilyFunction)(const AtomicString&, UScriptCode
); | 225 typedef void (Settings::*SetFontFamilyFunction)(const AtomicString&, UScriptCode
); |
| 231 static void setFontFamily(Settings* settings, const String& family, const String
& script, SetFontFamilyFunction setter) | 226 static void setFontFamily(Settings* settings, const String& family, const String
& script, SetFontFamilyFunction setter) |
| 232 { | 227 { |
| 233 UScriptCode code = scriptNameToCode(script); | 228 UScriptCode code = scriptNameToCode(script); |
| 234 if (code != USCRIPT_INVALID_CODE) | 229 if (code != USCRIPT_INVALID_CODE) |
| 235 (settings->*setter)(family, code); | 230 (settings->*setter)(family, code); |
| 236 } | 231 } |
| 237 | 232 |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 settings()->setMinDOMTimerInterval(intervalInSeconds); | 406 settings()->setMinDOMTimerInterval(intervalInSeconds); |
| 412 } | 407 } |
| 413 | 408 |
| 414 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionCode
& ec) | 409 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionCode
& ec) |
| 415 { | 410 { |
| 416 InternalSettingsGuardForSettings(); | 411 InternalSettingsGuardForSettings(); |
| 417 settings()->setDefaultVideoPosterURL(url); | 412 settings()->setDefaultVideoPosterURL(url); |
| 418 } | 413 } |
| 419 | 414 |
| 420 } | 415 } |
| OLD | NEW |