| 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 14 matching lines...) Expand all Loading... |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #include "config.h" | 27 #include "config.h" |
| 28 #include "InternalSettings.h" | 28 #include "InternalSettings.h" |
| 29 | 29 |
| 30 #include "CaptionUserPreferences.h" | 30 #include "CaptionUserPreferences.h" |
| 31 #include "Document.h" | 31 #include "Document.h" |
| 32 #include "ExceptionCode.h" | 32 #include "ExceptionCode.h" |
| 33 #include "Frame.h" | 33 #include "Frame.h" |
| 34 #include "FrameView.h" | 34 #include "FrameView.h" |
| 35 #include "Language.h" | |
| 36 #include "Page.h" | 35 #include "Page.h" |
| 37 #include "PageGroup.h" | 36 #include "PageGroup.h" |
| 38 #include "RuntimeEnabledFeatures.h" | 37 #include "RuntimeEnabledFeatures.h" |
| 39 #include "Settings.h" | 38 #include "Settings.h" |
| 40 #include "Supplementable.h" | 39 #include "core/platform/Language.h" |
| 40 #include "core/platform/Supplementable.h" |
| 41 #include "core/platform/graphics/TextRun.h" | 41 #include "core/platform/graphics/TextRun.h" |
| 42 #include "core/platform/text/LocaleToScriptMapping.h" | 42 #include "core/platform/text/LocaleToScriptMapping.h" |
| 43 | 43 |
| 44 #if ENABLE(INPUT_TYPE_COLOR) | 44 #if ENABLE(INPUT_TYPE_COLOR) |
| 45 #include "ColorChooser.h" | 45 #include "core/platform/ColorChooser.h" |
| 46 #endif | 46 #endif |
| 47 | 47 |
| 48 #define InternalSettingsGuardForSettingsReturn(returnValue) \ | 48 #define InternalSettingsGuardForSettingsReturn(returnValue) \ |
| 49 if (!settings()) { \ | 49 if (!settings()) { \ |
| 50 ec = INVALID_ACCESS_ERR; \ | 50 ec = INVALID_ACCESS_ERR; \ |
| 51 return returnValue; \ | 51 return returnValue; \ |
| 52 } | 52 } |
| 53 | 53 |
| 54 #define InternalSettingsGuardForSettings() \ | 54 #define InternalSettingsGuardForSettings() \ |
| 55 if (!settings()) { \ | 55 if (!settings()) { \ |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 settings()->setImagesEnabled(enabled); | 398 settings()->setImagesEnabled(enabled); |
| 399 } | 399 } |
| 400 | 400 |
| 401 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionCode
& ec) | 401 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionCode
& ec) |
| 402 { | 402 { |
| 403 InternalSettingsGuardForSettings(); | 403 InternalSettingsGuardForSettings(); |
| 404 settings()->setDefaultVideoPosterURL(url); | 404 settings()->setDefaultVideoPosterURL(url); |
| 405 } | 405 } |
| 406 | 406 |
| 407 } | 407 } |
| OLD | NEW |