OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. |
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 else | 782 else |
783 element.setChildrenOrSiblingsAffectedByActive(); | 783 element.setChildrenOrSiblingsAffectedByActive(); |
784 } | 784 } |
785 if (element.active() || InspectorInstrumentation::forcePseudoSta
te(&element, CSSSelector::PseudoActive)) | 785 if (element.active() || InspectorInstrumentation::forcePseudoSta
te(&element, CSSSelector::PseudoActive)) |
786 return true; | 786 return true; |
787 } | 787 } |
788 break; | 788 break; |
789 case CSSSelector::PseudoEnabled: | 789 case CSSSelector::PseudoEnabled: |
790 if (element.isFormControlElement() || isHTMLOptionElement(element) |
| isHTMLOptGroupElement(element)) | 790 if (element.isFormControlElement() || isHTMLOptionElement(element) |
| isHTMLOptGroupElement(element)) |
791 return !element.isDisabledFormControl(); | 791 return !element.isDisabledFormControl(); |
| 792 else if (isHTMLAnchorElement(element) || isHTMLAreaElement(element)) |
| 793 return element.isLink(); |
792 break; | 794 break; |
793 case CSSSelector::PseudoFullPageMedia: | 795 case CSSSelector::PseudoFullPageMedia: |
794 return element.document().isMediaDocument(); | 796 return element.document().isMediaDocument(); |
795 break; | 797 break; |
796 case CSSSelector::PseudoDefault: | 798 case CSSSelector::PseudoDefault: |
797 return element.isDefaultButtonForForm(); | 799 return element.isDefaultButtonForForm(); |
798 case CSSSelector::PseudoDisabled: | 800 case CSSSelector::PseudoDisabled: |
799 if (element.isFormControlElement() || isHTMLOptionElement(element) |
| isHTMLOptGroupElement(element)) | 801 if (element.isFormControlElement() || isHTMLOptionElement(element) |
| isHTMLOptGroupElement(element)) |
800 return element.isDisabledFormControl(); | 802 return element.isDisabledFormControl(); |
801 break; | 803 break; |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1130 return isHTMLOptionElement(element) && toHTMLOptionElement(element).spatialN
avigationFocused() && isFrameFocused(element); | 1132 return isHTMLOptionElement(element) && toHTMLOptionElement(element).spatialN
avigationFocused() && isFrameFocused(element); |
1131 } | 1133 } |
1132 | 1134 |
1133 template | 1135 template |
1134 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co
nst DOMSiblingTraversalStrategy&, MatchResult*) const; | 1136 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co
nst DOMSiblingTraversalStrategy&, MatchResult*) const; |
1135 | 1137 |
1136 template | 1138 template |
1137 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co
nst ShadowDOMSiblingTraversalStrategy&, MatchResult*) const; | 1139 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co
nst ShadowDOMSiblingTraversalStrategy&, MatchResult*) const; |
1138 | 1140 |
1139 } | 1141 } |
OLD | NEW |