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