OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. | 8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. |
9 * Copyright (C) 2012 Intel Corporation. All rights reserved. | 9 * Copyright (C) 2012 Intel Corporation. All rights reserved. |
10 * | 10 * |
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 break; | 814 break; |
815 case CSSSelector::PseudoContent: | 815 case CSSSelector::PseudoContent: |
816 feature = UseCounter::CSSSelectorPseudoContent; | 816 feature = UseCounter::CSSSelectorPseudoContent; |
817 break; | 817 break; |
818 case CSSSelector::PseudoHost: | 818 case CSSSelector::PseudoHost: |
819 feature = UseCounter::CSSSelectorPseudoHost; | 819 feature = UseCounter::CSSSelectorPseudoHost; |
820 break; | 820 break; |
821 case CSSSelector::PseudoHostContext: | 821 case CSSSelector::PseudoHostContext: |
822 feature = UseCounter::CSSSelectorPseudoHostContext; | 822 feature = UseCounter::CSSSelectorPseudoHostContext; |
823 break; | 823 break; |
| 824 case CSSSelector::PseudoFullScreenDocument: |
| 825 feature = UseCounter::CSSSelectorPseudoFullScreenDocument; |
| 826 break; |
| 827 case CSSSelector::PseudoFullScreenAncestor: |
| 828 feature = UseCounter::CSSSelectorPseudoFullScreenAncestor; |
| 829 break; |
| 830 case CSSSelector::PseudoFullScreen: |
| 831 feature = UseCounter::CSSSelectorPseudoFullScreen; |
| 832 break; |
824 default: | 833 default: |
825 break; | 834 break; |
826 } | 835 } |
827 if (feature != UseCounter::NumberOfFeatures) | 836 if (feature != UseCounter::NumberOfFeatures) |
828 context.useCounter()->count(feature); | 837 context.useCounter()->count(feature); |
829 if (current->relation() == CSSSelector::ShadowDeep) | 838 if (current->relation() == CSSSelector::ShadowDeep) |
830 context.useCounter()->count(UseCounter::CSSDeepCombinator); | 839 context.useCounter()->count(UseCounter::CSSDeepCombinator); |
831 if (current->selectorList()) | 840 if (current->selectorList()) |
832 recordSelectorStats(context, *current->selectorList()); | 841 recordSelectorStats(context, *current->selectorList()); |
833 } | 842 } |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1141 rule->setProperties(createStylePropertySet()); | 1150 rule->setProperties(createStylePropertySet()); |
1142 clearProperties(); | 1151 clearProperties(); |
1143 | 1152 |
1144 StyleRuleViewport* result = rule.get(); | 1153 StyleRuleViewport* result = rule.get(); |
1145 m_parsedRules.append(rule.release()); | 1154 m_parsedRules.append(rule.release()); |
1146 | 1155 |
1147 return result; | 1156 return result; |
1148 } | 1157 } |
1149 | 1158 |
1150 } | 1159 } |
OLD | NEW |