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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSSelectorList.h

Issue 1616423003: Fix selector namespace prefix resolution. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review issues Created 4 years, 10 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
OLDNEW
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
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
108 // Skip subparts of compound selectors. 106 // Skip subparts of compound selectors.
109 const CSSSelector* last = &current; 107 const CSSSelector* last = &current;
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPageRule.cpp ('k') | third_party/WebKit/Source/core/css/CSSSelectorList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698