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

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

Issue 2392343005: Reflow comments in core/css (Closed)
Patch Set: Revert clang-format Created 4 years, 2 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 void deleteSelectorsIfNeeded() { 87 void deleteSelectorsIfNeeded() {
88 if (m_selectorArray) 88 if (m_selectorArray)
89 deleteSelectors(); 89 deleteSelectors();
90 } 90 }
91 void deleteSelectors(); 91 void deleteSelectors();
92 92
93 CSSSelectorList(const CSSSelectorList&) = delete; 93 CSSSelectorList(const CSSSelectorList&) = delete;
94 CSSSelectorList& operator=(const CSSSelectorList&) = delete; 94 CSSSelectorList& operator=(const CSSSelectorList&) = delete;
95 95
96 // End of a multipart selector is indicated by m_isLastInTagHistory bit in the last item. 96 // End of a multipart selector is indicated by m_isLastInTagHistory bit in the
97 // End of the array is indicated by m_isLastInSelectorList bit in the last ite m. 97 // last item. End of the array is indicated by m_isLastInSelectorList bit in
98 // the last item.
98 CSSSelector* m_selectorArray; 99 CSSSelector* m_selectorArray;
99 }; 100 };
100 101
101 inline const CSSSelector* CSSSelectorList::next(const CSSSelector& current) { 102 inline const CSSSelector* CSSSelectorList::next(const CSSSelector& current) {
102 // Skip subparts of compound selectors. 103 // Skip subparts of compound selectors.
103 const CSSSelector* last = &current; 104 const CSSSelector* last = &current;
104 while (!last->isLastInTagHistory()) 105 while (!last->isLastInTagHistory())
105 last++; 106 last++;
106 return last->isLastInSelectorList() ? 0 : last + 1; 107 return last->isLastInSelectorList() ? 0 : last + 1;
107 } 108 }
108 109
109 } // namespace blink 110 } // namespace blink
110 111
111 #endif // CSSSelectorList_h 112 #endif // CSSSelectorList_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSSelector.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