| 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 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 return element.isVTTElement() && !toVTTElement(element).isPastNode(); | 902 return element.isVTTElement() && !toVTTElement(element).isPastNode(); |
| 903 case CSSSelector::PseudoPastCue: | 903 case CSSSelector::PseudoPastCue: |
| 904 return element.isVTTElement() && toVTTElement(element).isPastNode(); | 904 return element.isVTTElement() && toVTTElement(element).isPastNode(); |
| 905 case CSSSelector::PseudoScope: | 905 case CSSSelector::PseudoScope: |
| 906 if (m_mode == SharingRules) | 906 if (m_mode == SharingRules) |
| 907 return true; | 907 return true; |
| 908 if (context.scope == &element.document()) | 908 if (context.scope == &element.document()) |
| 909 return element == element.document().documentElement(); | 909 return element == element.document().documentElement(); |
| 910 return context.scope == &element; | 910 return context.scope == &element; |
| 911 case CSSSelector::PseudoUnresolved: | 911 case CSSSelector::PseudoUnresolved: |
| 912 return element.isUnresolvedCustomElement(); | 912 return element.isUnresolvedV0CustomElement(); |
| 913 case CSSSelector::PseudoHost: | 913 case CSSSelector::PseudoHost: |
| 914 case CSSSelector::PseudoHostContext: | 914 case CSSSelector::PseudoHostContext: |
| 915 return checkPseudoHost(context, result); | 915 return checkPseudoHost(context, result); |
| 916 case CSSSelector::PseudoSpatialNavigationFocus: | 916 case CSSSelector::PseudoSpatialNavigationFocus: |
| 917 return m_isUARule && matchesSpatialNavigationFocusPseudoClass(element); | 917 return m_isUARule && matchesSpatialNavigationFocusPseudoClass(element); |
| 918 case CSSSelector::PseudoListBox: | 918 case CSSSelector::PseudoListBox: |
| 919 return m_isUARule && matchesListBoxPseudoClass(element); | 919 return m_isUARule && matchesListBoxPseudoClass(element); |
| 920 case CSSSelector::PseudoWindowInactive: | 920 case CSSSelector::PseudoWindowInactive: |
| 921 if (!context.hasSelectionPseudo) | 921 if (!context.hasSelectionPseudo) |
| 922 return false; | 922 return false; |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1135 } | 1135 } |
| 1136 | 1136 |
| 1137 bool SelectorChecker::matchesFocusPseudoClass(const Element& element) | 1137 bool SelectorChecker::matchesFocusPseudoClass(const Element& element) |
| 1138 { | 1138 { |
| 1139 if (InspectorInstrumentation::forcePseudoState(const_cast<Element*>(&element
), CSSSelector::PseudoFocus)) | 1139 if (InspectorInstrumentation::forcePseudoState(const_cast<Element*>(&element
), CSSSelector::PseudoFocus)) |
| 1140 return true; | 1140 return true; |
| 1141 return element.focused() && isFrameFocused(element); | 1141 return element.focused() && isFrameFocused(element); |
| 1142 } | 1142 } |
| 1143 | 1143 |
| 1144 } // namespace blink | 1144 } // namespace blink |
| OLD | NEW |