OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 size_t indexOfNextSelectorAfter(size_t index) const | 69 size_t indexOfNextSelectorAfter(size_t index) const |
70 { | 70 { |
71 const CSSSelector& current = selectorAt(index); | 71 const CSSSelector& current = selectorAt(index); |
72 const CSSSelector* next = this->next(current); | 72 const CSSSelector* next = this->next(current); |
73 if (!next) | 73 if (!next) |
74 return kNotFound; | 74 return kNotFound; |
75 return next - m_selectorArray; | 75 return next - m_selectorArray; |
76 } | 76 } |
77 | 77 |
78 bool selectorsNeedNamespaceResolution(); | |
79 | |
80 bool selectorNeedsUpdatedDistribution(size_t index) const; | 78 bool selectorNeedsUpdatedDistribution(size_t index) const; |
81 | 79 |
82 bool selectorHasContentPseudo(size_t index) const; | 80 bool selectorHasContentPseudo(size_t index) const; |
83 bool selectorHasSlottedPseudo(size_t index) const; | 81 bool selectorHasSlottedPseudo(size_t index) const; |
84 bool selectorUsesDeepCombinatorOrShadowPseudo(size_t index) const; | 82 bool selectorUsesDeepCombinatorOrShadowPseudo(size_t index) const; |
85 | 83 |
86 String selectorsText() const; | 84 String selectorsText() const; |
87 | 85 |
88 private: | 86 private: |
89 unsigned length() const; | 87 unsigned length() const; |
(...skipping 18 matching lines...) Expand all Loading... |
108 // Skip subparts of compound selectors. | 106 // Skip subparts of compound selectors. |
109 const CSSSelector* last = ¤t; | 107 const CSSSelector* last = ¤t; |
110 while (!last->isLastInTagHistory()) | 108 while (!last->isLastInTagHistory()) |
111 last++; | 109 last++; |
112 return last->isLastInSelectorList() ? 0 : last + 1; | 110 return last->isLastInSelectorList() ? 0 : last + 1; |
113 } | 111 } |
114 | 112 |
115 } // namespace blink | 113 } // namespace blink |
116 | 114 |
117 #endif // CSSSelectorList_h | 115 #endif // CSSSelectorList_h |
OLD | NEW |