| 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 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 else | 781 else |
| 782 element.setChildrenOrSiblingsAffectedByActive(); | 782 element.setChildrenOrSiblingsAffectedByActive(); |
| 783 } | 783 } |
| 784 if (element.active() || InspectorInstrumentation::forcePseudoSta
te(&element, CSSSelector::PseudoActive)) | 784 if (element.active() || InspectorInstrumentation::forcePseudoSta
te(&element, CSSSelector::PseudoActive)) |
| 785 return true; | 785 return true; |
| 786 } | 786 } |
| 787 break; | 787 break; |
| 788 case CSSSelector::PseudoEnabled: | 788 case CSSSelector::PseudoEnabled: |
| 789 if (element.isFormControlElement() || isHTMLOptionElement(element) |
| isHTMLOptGroupElement(element)) | 789 if (element.isFormControlElement() || isHTMLOptionElement(element) |
| isHTMLOptGroupElement(element)) |
| 790 return !element.isDisabledFormControl(); | 790 return !element.isDisabledFormControl(); |
| 791 else if (isHTMLAnchorElement(element) || isHTMLAreaElement(element)) |
| 792 return element.isLink(); |
| 791 break; | 793 break; |
| 792 case CSSSelector::PseudoFullPageMedia: | 794 case CSSSelector::PseudoFullPageMedia: |
| 793 return element.document().isMediaDocument(); | 795 return element.document().isMediaDocument(); |
| 794 break; | 796 break; |
| 795 case CSSSelector::PseudoDefault: | 797 case CSSSelector::PseudoDefault: |
| 796 return element.isDefaultButtonForForm(); | 798 return element.isDefaultButtonForForm(); |
| 797 case CSSSelector::PseudoDisabled: | 799 case CSSSelector::PseudoDisabled: |
| 798 if (element.isFormControlElement() || isHTMLOptionElement(element) |
| isHTMLOptGroupElement(element)) | 800 if (element.isFormControlElement() || isHTMLOptionElement(element) |
| isHTMLOptGroupElement(element)) |
| 799 return element.isDisabledFormControl(); | 801 return element.isDisabledFormControl(); |
| 800 break; | 802 break; |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1129 return isHTMLOptionElement(element) && toHTMLOptionElement(element).spatialN
avigationFocused() && isFrameFocused(element); | 1131 return isHTMLOptionElement(element) && toHTMLOptionElement(element).spatialN
avigationFocused() && isFrameFocused(element); |
| 1130 } | 1132 } |
| 1131 | 1133 |
| 1132 template | 1134 template |
| 1133 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co
nst DOMSiblingTraversalStrategy&, MatchResult*) const; | 1135 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co
nst DOMSiblingTraversalStrategy&, MatchResult*) const; |
| 1134 | 1136 |
| 1135 template | 1137 template |
| 1136 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co
nst ShadowDOMSiblingTraversalStrategy&, MatchResult*) const; | 1138 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co
nst ShadowDOMSiblingTraversalStrategy&, MatchResult*) const; |
| 1137 | 1139 |
| 1138 } | 1140 } |
| OLD | NEW |