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

Side by Side Diff: Source/core/html/HTMLContentElement.cpp

Issue 322803004: Make all CSSSelector data members private (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix win dbg build error Created 6 years, 6 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 root->owner()->willAffectSelector(); 75 root->owner()->willAffectSelector();
76 m_shouldParseSelect = true; 76 m_shouldParseSelect = true;
77 m_select = value; 77 m_select = value;
78 } else { 78 } else {
79 InsertionPoint::parseAttribute(name, value); 79 InsertionPoint::parseAttribute(name, value);
80 } 80 }
81 } 81 }
82 82
83 static inline bool includesDisallowedPseudoClass(const CSSSelector& selector) 83 static inline bool includesDisallowedPseudoClass(const CSSSelector& selector)
84 { 84 {
85 return selector.m_match == CSSSelector::PseudoClass && selector.m_pseudoType != CSSSelector::PseudoNot; 85 return selector.match() == CSSSelector::PseudoClass && selector.pseudoType() != CSSSelector::PseudoNot;
86 } 86 }
87 87
88 bool HTMLContentElement::validateSelect() const 88 bool HTMLContentElement::validateSelect() const
89 { 89 {
90 ASSERT(!m_shouldParseSelect); 90 ASSERT(!m_shouldParseSelect);
91 91
92 if (m_select.isNull() || m_select.isEmpty()) 92 if (m_select.isNull() || m_select.isEmpty())
93 return true; 93 return true;
94 94
95 if (!m_selectorList.isValid()) 95 if (!m_selectorList.isValid())
(...skipping 26 matching lines...) Expand all
122 bool HTMLContentElement::matchSelector(const WillBeHeapVector<RawPtrWillBeMember <Node>, 32>& siblings, int nth) const 122 bool HTMLContentElement::matchSelector(const WillBeHeapVector<RawPtrWillBeMember <Node>, 32>& siblings, int nth) const
123 { 123 {
124 for (const CSSSelector* selector = selectorList().first(); selector; selecto r = CSSSelectorList::next(*selector)) { 124 for (const CSSSelector* selector = selectorList().first(); selector; selecto r = CSSSelectorList::next(*selector)) {
125 if (checkOneSelector(*selector, siblings, nth)) 125 if (checkOneSelector(*selector, siblings, nth))
126 return true; 126 return true;
127 } 127 }
128 return false; 128 return false;
129 } 129 }
130 130
131 } 131 }
OLDNEW
« Source/core/css/CSSSelector.h ('K') | « Source/core/dom/SelectorQuery.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698