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

Side by Side Diff: third_party/WebKit/Source/core/css/parser/CSSParserContext.cpp

Issue 2589143003: Add 'get' prefix for Settings.in generated code. (Closed)
Patch Set: Only get prefix and no capitalization. Created 3 years, 11 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/css/parser/CSSParserContext.h" 5 #include "core/css/parser/CSSParserContext.h"
6 6
7 #include "core/frame/Settings.h" 7 #include "core/frame/Settings.h"
8 #include "core/frame/csp/ContentSecurityPolicy.h" 8 #include "core/frame/csp/ContentSecurityPolicy.h"
9 #include "core/html/imports/HTMLImportsController.h" 9 #include "core/html/imports/HTMLImportsController.h"
10 10
(...skipping 17 matching lines...) Expand all
28 SelectorProfile profile) 28 SelectorProfile profile)
29 : m_baseURL(baseURL.isNull() ? document.baseURL() : baseURL), 29 : m_baseURL(baseURL.isNull() ? document.baseURL() : baseURL),
30 m_charset(charset), 30 m_charset(charset),
31 m_mode(document.inQuirksMode() ? HTMLQuirksMode : HTMLStandardMode), 31 m_mode(document.inQuirksMode() ? HTMLQuirksMode : HTMLStandardMode),
32 m_profile(profile), 32 m_profile(profile),
33 m_referrer(m_baseURL.strippedForUseAsReferrer(), 33 m_referrer(m_baseURL.strippedForUseAsReferrer(),
34 document.getReferrerPolicy()), 34 document.getReferrerPolicy()),
35 m_isHTMLDocument(document.isHTMLDocument()), 35 m_isHTMLDocument(document.isHTMLDocument()),
36 m_useLegacyBackgroundSizeShorthandBehavior( 36 m_useLegacyBackgroundSizeShorthandBehavior(
37 document.settings() 37 document.settings()
38 ? document.settings()->useLegacyBackgroundSizeShorthandBehavior() 38 ? document.settings()
39 ->getUseLegacyBackgroundSizeShorthandBehavior()
39 : false), 40 : false),
40 m_shouldCheckContentSecurityPolicy(DoNotCheckContentSecurityPolicy), 41 m_shouldCheckContentSecurityPolicy(DoNotCheckContentSecurityPolicy),
41 m_useCounter(useCounter) { 42 m_useCounter(useCounter) {
42 if (ContentSecurityPolicy::shouldBypassMainWorld(&document)) 43 if (ContentSecurityPolicy::shouldBypassMainWorld(&document))
43 m_shouldCheckContentSecurityPolicy = DoNotCheckContentSecurityPolicy; 44 m_shouldCheckContentSecurityPolicy = DoNotCheckContentSecurityPolicy;
44 else 45 else
45 m_shouldCheckContentSecurityPolicy = CheckContentSecurityPolicy; 46 m_shouldCheckContentSecurityPolicy = CheckContentSecurityPolicy;
46 47
47 if (HTMLImportsController* importsController = document.importsController()) { 48 if (HTMLImportsController* importsController = document.importsController()) {
48 m_matchMode = importsController->master()->inQuirksMode() 49 m_matchMode = importsController->master()->inQuirksMode()
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 86
86 KURL CSSParserContext::completeURL(const String& url) const { 87 KURL CSSParserContext::completeURL(const String& url) const {
87 if (url.isNull()) 88 if (url.isNull())
88 return KURL(); 89 return KURL();
89 if (charset().isEmpty()) 90 if (charset().isEmpty())
90 return KURL(baseURL(), url); 91 return KURL(baseURL(), url);
91 return KURL(baseURL(), url, charset()); 92 return KURL(baseURL(), url, charset());
92 } 93 }
93 94
94 } // namespace blink 95 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaValues.cpp ('k') | third_party/WebKit/Source/core/css/resolver/FontBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698