| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |