| Index: third_party/WebKit/Source/core/css/CSSSelectorList.h
|
| diff --git a/third_party/WebKit/Source/core/css/CSSSelectorList.h b/third_party/WebKit/Source/core/css/CSSSelectorList.h
|
| index 0ffca7cf809386a441374e5f1285400df55b194a..041b258d99df29eeb8cf4b172464606ceec1826a 100644
|
| --- a/third_party/WebKit/Source/core/css/CSSSelectorList.h
|
| +++ b/third_party/WebKit/Source/core/css/CSSSelectorList.h
|
| @@ -67,13 +67,18 @@ public:
|
| bool hasOneSelector() const { return m_selectorArray && !next(*m_selectorArray); }
|
| const CSSSelector& selectorAt(size_t index) const { return m_selectorArray[index]; }
|
|
|
| + size_t selectorIndex(const CSSSelector& selector) const
|
| + {
|
| + return &selector - m_selectorArray;
|
| + }
|
| +
|
| size_t indexOfNextSelectorAfter(size_t index) const
|
| {
|
| const CSSSelector& current = selectorAt(index);
|
| const CSSSelector* next = this->next(current);
|
| if (!next)
|
| return kNotFound;
|
| - return next - m_selectorArray;
|
| + return selectorIndex(*next);
|
| }
|
|
|
| String selectorsText() const;
|
|
|