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

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

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/CSSParser.h" 5 #include "core/css/parser/CSSParser.h"
6 6
7 #include <memory>
7 #include "core/css/CSSColorValue.h" 8 #include "core/css/CSSColorValue.h"
8 #include "core/css/CSSKeyframeRule.h" 9 #include "core/css/CSSKeyframeRule.h"
9 #include "core/css/StyleColor.h" 10 #include "core/css/StyleColor.h"
10 #include "core/css/StyleRule.h" 11 #include "core/css/StyleRule.h"
11 #include "core/css/StyleSheetContents.h" 12 #include "core/css/StyleSheetContents.h"
12 #include "core/css/parser/CSSParserFastPaths.h" 13 #include "core/css/parser/CSSParserFastPaths.h"
13 #include "core/css/parser/CSSParserImpl.h" 14 #include "core/css/parser/CSSParserImpl.h"
14 #include "core/css/parser/CSSPropertyParser.h" 15 #include "core/css/parser/CSSPropertyParser.h"
15 #include "core/css/parser/CSSSelectorParser.h" 16 #include "core/css/parser/CSSSelectorParser.h"
16 #include "core/css/parser/CSSSupportsParser.h" 17 #include "core/css/parser/CSSSupportsParser.h"
17 #include "core/css/parser/CSSTokenizer.h" 18 #include "core/css/parser/CSSTokenizer.h"
18 #include "core/css/parser/CSSVariableParser.h" 19 #include "core/css/parser/CSSVariableParser.h"
19 #include "core/layout/LayoutTheme.h" 20 #include "core/layout/LayoutTheme.h"
20 #include <memory>
21 21
22 namespace blink { 22 namespace blink {
23 23
24 using namespace cssvalue; 24 using namespace cssvalue;
25 25
26 bool CSSParser::ParseDeclarationList(const CSSParserContext* context, 26 bool CSSParser::ParseDeclarationList(const CSSParserContext* context,
27 MutableStylePropertySet* property_set, 27 MutableStylePropertySet* property_set,
28 const String& declaration) { 28 const String& declaration) {
29 return CSSParserImpl::ParseDeclarationList(property_set, declaration, 29 return CSSParserImpl::ParseDeclarationList(property_set, declaration,
30 context); 30 context);
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 builder.Append(property_value); 247 builder.Append(property_value);
248 builder.Append("; }"); 248 builder.Append("; }");
249 StyleRuleBase* rule = ParseRule(context, nullptr, builder.ToString()); 249 StyleRuleBase* rule = ParseRule(context, nullptr, builder.ToString());
250 if (!rule || !rule->IsFontFaceRule()) 250 if (!rule || !rule->IsFontFaceRule())
251 return nullptr; 251 return nullptr;
252 return ToStyleRuleFontFace(rule)->Properties().GetPropertyCSSValue( 252 return ToStyleRuleFontFace(rule)->Properties().GetPropertyCSSValue(
253 property_id); 253 property_id);
254 } 254 }
255 255
256 } // namespace blink 256 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698