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

Side by Side Diff: third_party/WebKit/Source/core/css/parser/CSSSelectorParser.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/CSSSelectorParser.h" 5 #include "core/css/parser/CSSSelectorParser.h"
6 6
7 #include <memory>
7 #include "core/css/CSSSelectorList.h" 8 #include "core/css/CSSSelectorList.h"
8 #include "core/css/StyleSheetContents.h" 9 #include "core/css/StyleSheetContents.h"
9 #include "core/css/parser/CSSParserContext.h" 10 #include "core/css/parser/CSSParserContext.h"
10 #include "core/frame/Deprecation.h" 11 #include "core/frame/Deprecation.h"
11 #include "core/frame/UseCounter.h" 12 #include "core/frame/UseCounter.h"
12 #include "platform/RuntimeEnabledFeatures.h" 13 #include "platform/RuntimeEnabledFeatures.h"
13 #include "wtf/PtrUtil.h" 14 #include "wtf/PtrUtil.h"
14 #include <memory>
15 15
16 namespace blink { 16 namespace blink {
17 17
18 // static 18 // static
19 CSSSelectorList CSSSelectorParser::parseSelector( 19 CSSSelectorList CSSSelectorParser::parseSelector(
20 CSSParserTokenRange range, 20 CSSParserTokenRange range,
21 const CSSParserContext* context, 21 const CSSParserContext* context,
22 StyleSheetContents* styleSheet) { 22 StyleSheetContents* styleSheet) {
23 CSSSelectorParser parser(context, styleSheet); 23 CSSSelectorParser parser(context, styleSheet);
24 range.consumeWhitespace(); 24 range.consumeWhitespace();
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 } 909 }
910 if (current->relation() == CSSSelector::IndirectAdjacent) 910 if (current->relation() == CSSSelector::IndirectAdjacent)
911 m_context->count(UseCounter::CSSSelectorIndirectAdjacent); 911 m_context->count(UseCounter::CSSSelectorIndirectAdjacent);
912 if (current->selectorList()) 912 if (current->selectorList())
913 recordUsageAndDeprecations(*current->selectorList()); 913 recordUsageAndDeprecations(*current->selectorList());
914 } 914 }
915 } 915 }
916 } 916 }
917 917
918 } // namespace blink 918 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698