| 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 "config.h" | 5 #include "config.h" |
| 6 #include "core/css/parser/CSSSelectorParser.h" | 6 #include "core/css/parser/CSSSelectorParser.h" |
| 7 | 7 |
| 8 #include "core/css/CSSSelectorList.h" | 8 #include "core/css/CSSSelectorList.h" |
| 9 #include "core/css/StyleSheetContents.h" | 9 #include "core/css/StyleSheetContents.h" |
| 10 #include "core/frame/UseCounter.h" | 10 #include "core/frame/UseCounter.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 break; | 26 break; |
| 27 case CSSSelector::PseudoContent: | 27 case CSSSelector::PseudoContent: |
| 28 feature = UseCounter::CSSSelectorPseudoContent; | 28 feature = UseCounter::CSSSelectorPseudoContent; |
| 29 break; | 29 break; |
| 30 case CSSSelector::PseudoHost: | 30 case CSSSelector::PseudoHost: |
| 31 feature = UseCounter::CSSSelectorPseudoHost; | 31 feature = UseCounter::CSSSelectorPseudoHost; |
| 32 break; | 32 break; |
| 33 case CSSSelector::PseudoHostContext: | 33 case CSSSelector::PseudoHostContext: |
| 34 feature = UseCounter::CSSSelectorPseudoHostContext; | 34 feature = UseCounter::CSSSelectorPseudoHostContext; |
| 35 break; | 35 break; |
| 36 case CSSSelector::PseudoFullScreenDocument: | |
| 37 feature = UseCounter::CSSSelectorPseudoFullScreenDocument; | |
| 38 break; | |
| 39 case CSSSelector::PseudoFullScreenAncestor: | 36 case CSSSelector::PseudoFullScreenAncestor: |
| 40 feature = UseCounter::CSSSelectorPseudoFullScreenAncestor; | 37 feature = UseCounter::CSSSelectorPseudoFullScreenAncestor; |
| 41 break; | 38 break; |
| 42 case CSSSelector::PseudoFullScreen: | 39 case CSSSelector::PseudoFullScreen: |
| 43 feature = UseCounter::CSSSelectorPseudoFullScreen; | 40 feature = UseCounter::CSSSelectorPseudoFullScreen; |
| 44 break; | 41 break; |
| 45 default: | 42 default: |
| 46 break; | 43 break; |
| 47 } | 44 } |
| 48 if (feature != UseCounter::NumberOfFeatures) | 45 if (feature != UseCounter::NumberOfFeatures) |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 compoundSelector->insertTagHistory(CSSSelector::SubSelector, simpleSelec
tor, relation); | 654 compoundSelector->insertTagHistory(CSSSelector::SubSelector, simpleSelec
tor, relation); |
| 658 return compoundSelector; | 655 return compoundSelector; |
| 659 } | 656 } |
| 660 | 657 |
| 661 // All other simple selectors are added to the end of the compound. | 658 // All other simple selectors are added to the end of the compound. |
| 662 compoundSelector->appendTagHistory(CSSSelector::SubSelector, simpleSelector)
; | 659 compoundSelector->appendTagHistory(CSSSelector::SubSelector, simpleSelector)
; |
| 663 return compoundSelector; | 660 return compoundSelector; |
| 664 } | 661 } |
| 665 | 662 |
| 666 } // namespace blink | 663 } // namespace blink |
| OLD | NEW |