| 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 "core/css/CSSSelectorList.h" | 7 #include "core/css/CSSSelectorList.h" |
| 8 #include "core/css/StyleSheetContents.h" | 8 #include "core/css/StyleSheetContents.h" |
| 9 #include "core/frame/UseCounter.h" | 9 #include "core/frame/UseCounter.h" |
| 10 #include "platform/RuntimeEnabledFeatures.h" | 10 #include "platform/RuntimeEnabledFeatures.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 break; | 38 break; |
| 39 case CSSSelector::PseudoContent: | 39 case CSSSelector::PseudoContent: |
| 40 feature = UseCounter::CSSSelectorPseudoContent; | 40 feature = UseCounter::CSSSelectorPseudoContent; |
| 41 break; | 41 break; |
| 42 case CSSSelector::PseudoHost: | 42 case CSSSelector::PseudoHost: |
| 43 feature = UseCounter::CSSSelectorPseudoHost; | 43 feature = UseCounter::CSSSelectorPseudoHost; |
| 44 break; | 44 break; |
| 45 case CSSSelector::PseudoHostContext: | 45 case CSSSelector::PseudoHostContext: |
| 46 feature = UseCounter::CSSSelectorPseudoHostContext; | 46 feature = UseCounter::CSSSelectorPseudoHostContext; |
| 47 break; | 47 break; |
| 48 case CSSSelector::PseudoFullScreenAncestor: | |
| 49 feature = UseCounter::CSSSelectorPseudoFullScreenAncestor; | |
| 50 break; | |
| 51 case CSSSelector::PseudoFullScreen: | 48 case CSSSelector::PseudoFullScreen: |
| 52 feature = UseCounter::CSSSelectorPseudoFullScreen; | 49 feature = UseCounter::CSSSelectorPseudoFullScreen; |
| 53 break; | 50 break; |
| 54 case CSSSelector::PseudoListBox: | 51 case CSSSelector::PseudoListBox: |
| 55 if (context.mode() != UASheetMode) | 52 if (context.mode() != UASheetMode) |
| 56 feature = UseCounter::CSSSelectorInternalPseudoListBox; | 53 feature = UseCounter::CSSSelectorInternalPseudoListBox; |
| 57 break; | 54 break; |
| 58 case CSSSelector::PseudoWebKitCustomElement: | 55 case CSSSelector::PseudoWebKitCustomElement: |
| 59 if (context.mode() != UASheetMode) { | 56 if (context.mode() != UASheetMode) { |
| 60 if (current->value() == "-internal-media-controls-cast-button") | 57 if (current->value() == "-internal-media-controls-cast-button") |
| (...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 850 splitAfter->releaseTagHistory(); | 847 splitAfter->releaseTagHistory(); |
| 851 secondCompound->appendTagHistory( | 848 secondCompound->appendTagHistory( |
| 852 secondCompound->pseudoType() == CSSSelector::PseudoSlotted | 849 secondCompound->pseudoType() == CSSSelector::PseudoSlotted |
| 853 ? CSSSelector::ShadowSlot | 850 ? CSSSelector::ShadowSlot |
| 854 : CSSSelector::ShadowPseudo, | 851 : CSSSelector::ShadowPseudo, |
| 855 std::move(compoundSelector)); | 852 std::move(compoundSelector)); |
| 856 return secondCompound; | 853 return secondCompound; |
| 857 } | 854 } |
| 858 | 855 |
| 859 } // namespace blink | 856 } // namespace blink |
| OLD | NEW |