| 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 10 matching lines...) Expand all Loading... |
| 21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 21 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 22 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #include "config.h" | 27 #include "config.h" |
| 28 #include "InternalSettings.h" | 28 #include "InternalSettings.h" |
| 29 | 29 |
| 30 #include "RuntimeEnabledFeatures.h" | 30 #include "RuntimeEnabledFeatures.h" |
| 31 #include "core/dom/Document.h" | |
| 32 #include "core/dom/ExceptionCode.h" | 31 #include "core/dom/ExceptionCode.h" |
| 33 #include "core/page/Frame.h" | |
| 34 #include "core/page/FrameView.h" | |
| 35 #include "core/page/Page.h" | 32 #include "core/page/Page.h" |
| 36 #include "core/page/Settings.h" | 33 #include "core/page/Settings.h" |
| 37 #include "core/platform/Language.h" | |
| 38 #include "core/platform/Supplementable.h" | 34 #include "core/platform/Supplementable.h" |
| 39 #include "core/platform/graphics/TextRun.h" | |
| 40 #include "core/platform/text/LocaleToScriptMapping.h" | 35 #include "core/platform/text/LocaleToScriptMapping.h" |
| 41 | 36 |
| 42 #if ENABLE(INPUT_TYPE_COLOR) | 37 #if ENABLE(INPUT_TYPE_COLOR) |
| 43 #include "core/platform/ColorChooser.h" | 38 #include "core/platform/ColorChooser.h" |
| 44 #endif | 39 #endif |
| 45 | 40 |
| 46 #define InternalSettingsGuardForSettingsReturn(returnValue) \ | 41 #define InternalSettingsGuardForSettingsReturn(returnValue) \ |
| 47 if (!settings()) { \ | 42 if (!settings()) { \ |
| 48 ec = INVALID_ACCESS_ERR; \ | 43 ec = INVALID_ACCESS_ERR; \ |
| 49 return returnValue; \ | 44 return returnValue; \ |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 settings()->setImagesEnabled(enabled); | 308 settings()->setImagesEnabled(enabled); |
| 314 } | 309 } |
| 315 | 310 |
| 316 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionCode
& ec) | 311 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionCode
& ec) |
| 317 { | 312 { |
| 318 InternalSettingsGuardForSettings(); | 313 InternalSettingsGuardForSettings(); |
| 319 settings()->setDefaultVideoPosterURL(url); | 314 settings()->setDefaultVideoPosterURL(url); |
| 320 } | 315 } |
| 321 | 316 |
| 322 } | 317 } |
| OLD | NEW |