| 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/CaptionUserPreferences.h" | 32 #include "core/page/CaptionUserPreferences.h" |
| 34 #include "core/page/Frame.h" | |
| 35 #include "core/page/FrameView.h" | |
| 36 #include "core/page/Page.h" | 33 #include "core/page/Page.h" |
| 37 #include "core/page/PageGroup.h" | 34 #include "core/page/PageGroup.h" |
| 38 #include "core/page/Settings.h" | 35 #include "core/page/Settings.h" |
| 39 #include "core/platform/Language.h" | |
| 40 #include "core/platform/Supplementable.h" | 36 #include "core/platform/Supplementable.h" |
| 41 #include "core/platform/graphics/TextRun.h" | |
| 42 #include "core/platform/text/LocaleToScriptMapping.h" | 37 #include "core/platform/text/LocaleToScriptMapping.h" |
| 43 | 38 |
| 44 #if ENABLE(INPUT_TYPE_COLOR) | 39 #if ENABLE(INPUT_TYPE_COLOR) |
| 45 #include "core/platform/ColorChooser.h" | |
| 46 #endif | 40 #endif |
| 47 | 41 |
| 48 #define InternalSettingsGuardForSettingsReturn(returnValue) \ | 42 #define InternalSettingsGuardForSettingsReturn(returnValue) \ |
| 49 if (!settings()) { \ | 43 if (!settings()) { \ |
| 50 ec = INVALID_ACCESS_ERR; \ | 44 ec = INVALID_ACCESS_ERR; \ |
| 51 return returnValue; \ | 45 return returnValue; \ |
| 52 } | 46 } |
| 53 | 47 |
| 54 #define InternalSettingsGuardForSettings() \ | 48 #define InternalSettingsGuardForSettings() \ |
| 55 if (!settings()) { \ | 49 if (!settings()) { \ |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 settings()->setImagesEnabled(enabled); | 360 settings()->setImagesEnabled(enabled); |
| 367 } | 361 } |
| 368 | 362 |
| 369 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionCode
& ec) | 363 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionCode
& ec) |
| 370 { | 364 { |
| 371 InternalSettingsGuardForSettings(); | 365 InternalSettingsGuardForSettings(); |
| 372 settings()->setDefaultVideoPosterURL(url); | 366 settings()->setDefaultVideoPosterURL(url); |
| 373 } | 367 } |
| 374 | 368 |
| 375 } | 369 } |
| OLD | NEW |