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

Side by Side Diff: Source/core/html/shadow/ContentSelectorQuery.cpp

Issue 14519003: Absolutify paths to dom/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix testrunner Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 10 matching lines...) Expand all
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27 #include "config.h" 27 #include "config.h"
28 #include "ContentSelectorQuery.h" 28 #include "ContentSelectorQuery.h"
29 29
30 #include "InsertionPoint.h" 30 #include "InsertionPoint.h"
31 #include "ShadowRoot.h"
32 #include "core/css/CSSSelectorList.h" 31 #include "core/css/CSSSelectorList.h"
33 #include "core/css/SelectorChecker.h" 32 #include "core/css/SelectorChecker.h"
34 #include "core/css/SiblingTraversalStrategies.h" 33 #include "core/css/SiblingTraversalStrategies.h"
34 #include "core/dom/ShadowRoot.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 bool ContentSelectorDataList::checkContentSelector(const CSSSelector* selector, const Vector<RefPtr<Node> >& siblings, int nth) 38 bool ContentSelectorDataList::checkContentSelector(const CSSSelector* selector, const Vector<RefPtr<Node> >& siblings, int nth)
39 { 39 {
40 Element* element = toElement(siblings[nth].get()); 40 Element* element = toElement(siblings[nth].get());
41 SelectorChecker selectorChecker(element->document(), SelectorChecker::Collec tingRules); 41 SelectorChecker selectorChecker(element->document(), SelectorChecker::Collec tingRules);
42 SelectorChecker::SelectorCheckingContext context(selector, element, Selector Checker::VisitedMatchEnabled); 42 SelectorChecker::SelectorCheckingContext context(selector, element, Selector Checker::VisitedMatchEnabled);
43 ShadowDOMSiblingTraversalStrategy strategy(siblings, nth); 43 ShadowDOMSiblingTraversalStrategy strategy(siblings, nth);
44 PseudoId ignoreDynamicPseudo = NOPSEUDO; 44 PseudoId ignoreDynamicPseudo = NOPSEUDO;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 return false; 79 return false;
80 case InsertionPoint::HasToMatchSelector: 80 case InsertionPoint::HasToMatchSelector:
81 return node->isElementNode() && m_selectors.matches(siblings, nth); 81 return node->isElementNode() && m_selectors.matches(siblings, nth);
82 default: 82 default:
83 ASSERT_NOT_REACHED(); 83 ASSERT_NOT_REACHED();
84 return false; 84 return false;
85 } 85 }
86 } 86 }
87 87
88 } 88 }
OLDNEW
« no previous file with comments | « Source/core/html/shadow/ContentSelectorQuery.h ('k') | Source/core/html/shadow/DateTimeEditElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698