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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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/CSSParserImpl.h" 5 #include "core/css/parser/CSSParserImpl.h"
6 6
7 #include <bitset>
8 #include <memory>
7 #include "core/css/CSSCustomIdentValue.h" 9 #include "core/css/CSSCustomIdentValue.h"
8 #include "core/css/CSSCustomPropertyDeclaration.h" 10 #include "core/css/CSSCustomPropertyDeclaration.h"
9 #include "core/css/CSSKeyframesRule.h" 11 #include "core/css/CSSKeyframesRule.h"
10 #include "core/css/CSSStyleSheet.h" 12 #include "core/css/CSSStyleSheet.h"
11 #include "core/css/PropertyRegistry.h" 13 #include "core/css/PropertyRegistry.h"
12 #include "core/css/StyleRuleImport.h" 14 #include "core/css/StyleRuleImport.h"
13 #include "core/css/StyleRuleKeyframe.h" 15 #include "core/css/StyleRuleKeyframe.h"
14 #include "core/css/StyleRuleNamespace.h" 16 #include "core/css/StyleRuleNamespace.h"
15 #include "core/css/StyleSheetContents.h" 17 #include "core/css/StyleSheetContents.h"
16 #include "core/css/parser/CSSAtRuleID.h" 18 #include "core/css/parser/CSSAtRuleID.h"
17 #include "core/css/parser/CSSLazyParsingState.h" 19 #include "core/css/parser/CSSLazyParsingState.h"
18 #include "core/css/parser/CSSLazyPropertyParserImpl.h" 20 #include "core/css/parser/CSSLazyPropertyParserImpl.h"
19 #include "core/css/parser/CSSParserObserver.h" 21 #include "core/css/parser/CSSParserObserver.h"
20 #include "core/css/parser/CSSParserObserverWrapper.h" 22 #include "core/css/parser/CSSParserObserverWrapper.h"
21 #include "core/css/parser/CSSParserSelector.h" 23 #include "core/css/parser/CSSParserSelector.h"
22 #include "core/css/parser/CSSPropertyParser.h" 24 #include "core/css/parser/CSSPropertyParser.h"
23 #include "core/css/parser/CSSSelectorParser.h" 25 #include "core/css/parser/CSSSelectorParser.h"
24 #include "core/css/parser/CSSSupportsParser.h" 26 #include "core/css/parser/CSSSupportsParser.h"
25 #include "core/css/parser/CSSTokenizer.h" 27 #include "core/css/parser/CSSTokenizer.h"
26 #include "core/css/parser/CSSVariableParser.h" 28 #include "core/css/parser/CSSVariableParser.h"
27 #include "core/css/parser/MediaQueryParser.h" 29 #include "core/css/parser/MediaQueryParser.h"
28 #include "core/dom/Document.h" 30 #include "core/dom/Document.h"
29 #include "core/dom/Element.h" 31 #include "core/dom/Element.h"
30 #include "core/frame/Deprecation.h" 32 #include "core/frame/Deprecation.h"
31 #include "core/frame/UseCounter.h" 33 #include "core/frame/UseCounter.h"
32 #include "platform/instrumentation/tracing/TraceEvent.h" 34 #include "platform/instrumentation/tracing/TraceEvent.h"
33 #include "wtf/PtrUtil.h" 35 #include "wtf/PtrUtil.h"
34 #include <bitset>
35 #include <memory>
36 36
37 namespace blink { 37 namespace blink {
38 38
39 CSSParserImpl::CSSParserImpl(const CSSParserContext* context, 39 CSSParserImpl::CSSParserImpl(const CSSParserContext* context,
40 StyleSheetContents* styleSheet) 40 StyleSheetContents* styleSheet)
41 : m_context(context), 41 : m_context(context),
42 m_styleSheet(styleSheet), 42 m_styleSheet(styleSheet),
43 m_observerWrapper(nullptr) {} 43 m_observerWrapper(nullptr) {}
44 44
45 MutableStylePropertySet::SetResult CSSParserImpl::parseValue( 45 MutableStylePropertySet::SetResult CSSParserImpl::parseValue(
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 else 979 else
980 return nullptr; // Parser error, invalid value in keyframe selector 980 return nullptr; // Parser error, invalid value in keyframe selector
981 if (range.atEnd()) 981 if (range.atEnd())
982 return result; 982 return result;
983 if (range.consume().type() != CommaToken) 983 if (range.consume().type() != CommaToken)
984 return nullptr; // Parser error 984 return nullptr; // Parser error
985 } 985 }
986 } 986 }
987 987
988 } // namespace blink 988 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698