Index: Source/core/css/SelectorCheckerFastPath.h |
diff --git a/Source/core/css/SelectorCheckerFastPath.h b/Source/core/css/SelectorCheckerFastPath.h |
index 1a37b9ac35ae7946bef531123f596ebf7a57c884..3e0d9464e9e999bb98e198bd2a2c25d8573e0468 100644 |
--- a/Source/core/css/SelectorCheckerFastPath.h |
+++ b/Source/core/css/SelectorCheckerFastPath.h |
@@ -36,26 +36,26 @@ namespace WebCore { |
class SelectorCheckerFastPath { |
public: |
- SelectorCheckerFastPath(const CSSSelector*, const Element&); |
+ SelectorCheckerFastPath(const CSSSelector&, const Element&); |
bool matches() const; |
bool matchesRightmostSelector(SelectorChecker::VisitedMatchType) const; |
bool matchesRightmostAttributeSelector() const; |
- static bool canUse(const CSSSelector*); |
+ static bool canUse(const CSSSelector&); |
private: |
bool commonPseudoClassSelectorMatches(SelectorChecker::VisitedMatchType) const; |
- const CSSSelector* m_selector; |
+ const CSSSelector& m_selector; |
const Element& m_element; |
}; |
inline bool SelectorCheckerFastPath::matchesRightmostAttributeSelector() const |
{ |
- if (m_selector->m_match == CSSSelector::Exact || m_selector->m_match == CSSSelector::Set) |
- return SelectorChecker::checkExactAttribute(m_element, m_selector->attribute(), m_selector->value().impl()); |
- ASSERT(!m_selector->isAttributeSelector()); |
+ if (m_selector.m_match == CSSSelector::Exact || m_selector.m_match == CSSSelector::Set) |
+ return SelectorChecker::checkExactAttribute(m_element, m_selector.attribute(), m_selector.value().impl()); |
+ ASSERT(!m_selector.isAttributeSelector()); |
return true; |
} |