| 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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 settings()->setImageAnimationPolicy(ImageAnimationPolicyNoAnimation); | 464 settings()->setImageAnimationPolicy(ImageAnimationPolicyNoAnimation); |
| 465 else | 465 else |
| 466 exceptionState.throwDOMException(SyntaxError, "The image animation polic
y provided ('" + policy + "') is invalid."); | 466 exceptionState.throwDOMException(SyntaxError, "The image animation polic
y provided ('" + policy + "') is invalid."); |
| 467 } | 467 } |
| 468 | 468 |
| 469 void InternalSettings::setScrollTopLeftInteropEnabled(bool enabled) | 469 void InternalSettings::setScrollTopLeftInteropEnabled(bool enabled) |
| 470 { | 470 { |
| 471 RuntimeEnabledFeatures::setScrollTopLeftInteropEnabled(enabled); | 471 RuntimeEnabledFeatures::setScrollTopLeftInteropEnabled(enabled); |
| 472 } | 472 } |
| 473 | 473 |
| 474 void InternalSettings::setLinkHeaderEnabled(bool enabled) | |
| 475 { | |
| 476 RuntimeEnabledFeatures::setLinkHeaderEnabled(enabled); | |
| 477 } | |
| 478 | |
| 479 void InternalSettings::setDnsPrefetchLogging(bool enabled, ExceptionState& excep
tionState) | 474 void InternalSettings::setDnsPrefetchLogging(bool enabled, ExceptionState& excep
tionState) |
| 480 { | 475 { |
| 481 InternalSettingsGuardForSettings(); | 476 InternalSettingsGuardForSettings(); |
| 482 settings()->setLogDnsPrefetchAndPreconnect(enabled); | 477 settings()->setLogDnsPrefetchAndPreconnect(enabled); |
| 483 } | 478 } |
| 484 | 479 |
| 485 void InternalSettings::setPreloadLogging(bool enabled, ExceptionState& exception
State) | 480 void InternalSettings::setPreloadLogging(bool enabled, ExceptionState& exception
State) |
| 486 { | 481 { |
| 487 InternalSettingsGuardForSettings(); | 482 InternalSettingsGuardForSettings(); |
| 488 settings()->setLogPreload(enabled); | 483 settings()->setLogPreload(enabled); |
| 489 } | 484 } |
| 490 | 485 |
| 491 void InternalSettings::setCompositorWorkerEnabled(bool enabled, ExceptionState&
exceptionState) | 486 void InternalSettings::setCompositorWorkerEnabled(bool enabled, ExceptionState&
exceptionState) |
| 492 { | 487 { |
| 493 InternalSettingsGuardForSettings(); | 488 InternalSettingsGuardForSettings(); |
| 494 RuntimeEnabledFeatures::setCompositorWorkerEnabled(enabled); | 489 RuntimeEnabledFeatures::setCompositorWorkerEnabled(enabled); |
| 495 } | 490 } |
| 496 | 491 |
| 497 } // namespace blink | 492 } // namespace blink |
| OLD | NEW |