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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 settings->setDefaultVideoPosterURL(m_defaultVideoPosterURL); | 95 settings->setDefaultVideoPosterURL(m_defaultVideoPosterURL); |
96 settings->genericFontFamilySettings().reset(); | 96 settings->genericFontFamilySettings().reset(); |
97 RuntimeEnabledFeatures::setImageColorProfilesEnabled(m_originalImageColorPro
filesEnabled); | 97 RuntimeEnabledFeatures::setImageColorProfilesEnabled(m_originalImageColorPro
filesEnabled); |
98 settings->setImageAnimationPolicy(m_originalImageAnimationPolicy); | 98 settings->setImageAnimationPolicy(m_originalImageAnimationPolicy); |
99 RuntimeEnabledFeatures::setScrollTopLeftInteropEnabled(m_originalScrollTopLe
ftInteropEnabled); | 99 RuntimeEnabledFeatures::setScrollTopLeftInteropEnabled(m_originalScrollTopLe
ftInteropEnabled); |
100 RuntimeEnabledFeatures::setCompositorWorkerEnabled(m_originalCompositorWorke
rEnabled); | 100 RuntimeEnabledFeatures::setCompositorWorkerEnabled(m_originalCompositorWorke
rEnabled); |
101 } | 101 } |
102 | 102 |
103 InternalSettings* InternalSettings::from(Page& page) | 103 InternalSettings* InternalSettings::from(Page& page) |
104 { | 104 { |
105 if (!HeapSupplement<Page>::from(page, supplementName())) | 105 if (!Supplement<Page>::from(page, supplementName())) |
106 HeapSupplement<Page>::provideTo(page, supplementName(), new InternalSett
ings(page)); | 106 Supplement<Page>::provideTo(page, supplementName(), new InternalSettings
(page)); |
107 return static_cast<InternalSettings*>(HeapSupplement<Page>::from(page, suppl
ementName())); | 107 return static_cast<InternalSettings*>(Supplement<Page>::from(page, supplemen
tName())); |
108 } | 108 } |
109 const char* InternalSettings::supplementName() | 109 const char* InternalSettings::supplementName() |
110 { | 110 { |
111 return "InternalSettings"; | 111 return "InternalSettings"; |
112 } | 112 } |
113 | 113 |
114 InternalSettings::~InternalSettings() | 114 InternalSettings::~InternalSettings() |
115 { | 115 { |
116 } | 116 } |
117 | 117 |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 settings()->setLogPreload(enabled); | 475 settings()->setLogPreload(enabled); |
476 } | 476 } |
477 | 477 |
478 void InternalSettings::setCompositorWorkerEnabled(bool enabled, ExceptionState&
exceptionState) | 478 void InternalSettings::setCompositorWorkerEnabled(bool enabled, ExceptionState&
exceptionState) |
479 { | 479 { |
480 InternalSettingsGuardForSettings(); | 480 InternalSettingsGuardForSettings(); |
481 RuntimeEnabledFeatures::setCompositorWorkerEnabled(enabled); | 481 RuntimeEnabledFeatures::setCompositorWorkerEnabled(enabled); |
482 } | 482 } |
483 | 483 |
484 } // namespace blink | 484 } // namespace blink |
OLD | NEW |