| 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 15 matching lines...) Expand all Loading... |
| 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 "bindings/v8/ExceptionState.h" | 31 #include "bindings/v8/ExceptionState.h" |
| 32 #include "core/dom/ExceptionCode.h" | 32 #include "core/dom/ExceptionCode.h" |
| 33 #include "core/page/Page.h" | 33 #include "core/page/Page.h" |
| 34 #include "core/page/Settings.h" | 34 #include "core/page/Settings.h" |
| 35 #include "core/platform/ColorChooser.h" | 35 #include "core/platform/ColorChooser.h" |
| 36 #include "core/platform/text/LocaleToScriptMapping.h" | |
| 37 #include "platform/Supplementable.h" | 36 #include "platform/Supplementable.h" |
| 37 #include "platform/text/LocaleToScriptMapping.h" |
| 38 | 38 |
| 39 #define InternalSettingsGuardForSettingsReturn(returnValue) \ | 39 #define InternalSettingsGuardForSettingsReturn(returnValue) \ |
| 40 if (!settings()) { \ | 40 if (!settings()) { \ |
| 41 es.throwUninformativeAndGenericDOMException(InvalidAccessError); \ | 41 es.throwUninformativeAndGenericDOMException(InvalidAccessError); \ |
| 42 return returnValue; \ | 42 return returnValue; \ |
| 43 } | 43 } |
| 44 | 44 |
| 45 #define InternalSettingsGuardForSettings() \ | 45 #define InternalSettingsGuardForSettings() \ |
| 46 if (!settings()) { \ | 46 if (!settings()) { \ |
| 47 es.throwUninformativeAndGenericDOMException(InvalidAccessError); \ | 47 es.throwUninformativeAndGenericDOMException(InvalidAccessError); \ |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 settings()->setImagesEnabled(enabled); | 308 settings()->setImagesEnabled(enabled); |
| 309 } | 309 } |
| 310 | 310 |
| 311 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionStat
e& es) | 311 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionStat
e& es) |
| 312 { | 312 { |
| 313 InternalSettingsGuardForSettings(); | 313 InternalSettingsGuardForSettings(); |
| 314 settings()->setDefaultVideoPosterURL(url); | 314 settings()->setDefaultVideoPosterURL(url); |
| 315 } | 315 } |
| 316 | 316 |
| 317 } | 317 } |
| OLD | NEW |