Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Side by Side Diff: Source/core/testing/InternalSettings.cpp

Issue 15447002: Remove ~1750 superfluous includes from core (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebase a few hours Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/svg/properties/SVGPathSegListPropertyTearOff.cpp ('k') | Source/core/testing/MockPagePopupDriver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698