| 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/css/parser/CSSParserContext.h" | 9 #include "core/css/parser/CSSParserContext.h" |
| 10 #include "core/frame/Deprecation.h" | 10 #include "core/frame/Deprecation.h" |
| (...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 847 case CSSSelector::PseudoListBox: | 847 case CSSSelector::PseudoListBox: |
| 848 if (m_context->mode() != UASheetMode) | 848 if (m_context->mode() != UASheetMode) |
| 849 feature = UseCounter::CSSSelectorInternalPseudoListBox; | 849 feature = UseCounter::CSSSelectorInternalPseudoListBox; |
| 850 break; | 850 break; |
| 851 case CSSSelector::PseudoWebKitCustomElement: | 851 case CSSSelector::PseudoWebKitCustomElement: |
| 852 if (m_context->mode() != UASheetMode) { | 852 if (m_context->mode() != UASheetMode) { |
| 853 if (current->value() == | 853 if (current->value() == |
| 854 "-internal-media-controls-overlay-cast-button") { | 854 "-internal-media-controls-overlay-cast-button") { |
| 855 feature = | 855 feature = |
| 856 UseCounter::CSSSelectorInternalMediaControlsOverlayCastButton; | 856 UseCounter::CSSSelectorInternalMediaControlsOverlayCastButton; |
| 857 } else if (current->value() == | |
| 858 "-internal-media-controls-text-track-list") { | |
| 859 feature = | |
| 860 UseCounter::CSSSelectorInternalMediaControlsTextTrackList; | |
| 861 } else if (current->value() == | |
| 862 "-internal-media-controls-text-track-list-item") { | |
| 863 feature = | |
| 864 UseCounter::CSSSelectorInternalMediaControlsTextTrackListItem; | |
| 865 } else if (current->value() == | |
| 866 "-internal-media-controls-text-track-list-item-input") { | |
| 867 feature = UseCounter:: | |
| 868 CSSSelectorInternalMediaControlsTextTrackListItemInput; | |
| 869 } else if (current->value() == | |
| 870 "-internal-media-controls-text-track-list-kind-" | |
| 871 "captions") { | |
| 872 feature = UseCounter:: | |
| 873 CSSSelectorInternalMediaControlsTextTrackListKindCaptions; | |
| 874 } else if (current->value() == | |
| 875 "-internal-media-controls-text-track-list-kind-" | |
| 876 "subtitles") { | |
| 877 feature = UseCounter:: | |
| 878 CSSSelectorInternalMediaControlsTextTrackListKindSubtitles; | |
| 879 } | 857 } |
| 880 } | 858 } |
| 881 break; | 859 break; |
| 882 case CSSSelector::PseudoSpatialNavigationFocus: | 860 case CSSSelector::PseudoSpatialNavigationFocus: |
| 883 if (m_context->mode() != UASheetMode) { | 861 if (m_context->mode() != UASheetMode) { |
| 884 feature = | 862 feature = |
| 885 UseCounter::CSSSelectorInternalPseudoSpatialNavigationFocus; | 863 UseCounter::CSSSelectorInternalPseudoSpatialNavigationFocus; |
| 886 } | 864 } |
| 887 break; | 865 break; |
| 888 case CSSSelector::PseudoReadOnly: | 866 case CSSSelector::PseudoReadOnly: |
| (...skipping 18 matching lines...) Expand all Loading... |
| 907 } | 885 } |
| 908 if (current->relation() == CSSSelector::IndirectAdjacent) | 886 if (current->relation() == CSSSelector::IndirectAdjacent) |
| 909 m_context->count(UseCounter::CSSSelectorIndirectAdjacent); | 887 m_context->count(UseCounter::CSSSelectorIndirectAdjacent); |
| 910 if (current->selectorList()) | 888 if (current->selectorList()) |
| 911 recordUsageAndDeprecations(*current->selectorList()); | 889 recordUsageAndDeprecations(*current->selectorList()); |
| 912 } | 890 } |
| 913 } | 891 } |
| 914 } | 892 } |
| 915 | 893 |
| 916 } // namespace blink | 894 } // namespace blink |
| OLD | NEW |