Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1034)

Side by Side Diff: third_party/WebKit/Source/core/css/SelectorChecker.cpp

Issue 1982003002: Rename v0 custom element flags to V0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698