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

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

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 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) 1999-2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * 1999 Waldo Bastian (bastian@kde.org) 3 * 1999 Waldo Bastian (bastian@kde.org)
4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights
5 * reserved. 5 * reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 AttributeEnd, // css3: E[foo$="bar"] 122 AttributeEnd, // css3: E[foo$="bar"]
123 FirstAttributeSelectorMatch = AttributeExact, 123 FirstAttributeSelectorMatch = AttributeExact,
124 }; 124 };
125 125
126 enum RelationType { 126 enum RelationType {
127 SubSelector, // No combinator 127 SubSelector, // No combinator
128 Descendant, // "Space" combinator 128 Descendant, // "Space" combinator
129 Child, // > combinator 129 Child, // > combinator
130 DirectAdjacent, // + combinator 130 DirectAdjacent, // + combinator
131 IndirectAdjacent, // ~ combinator 131 IndirectAdjacent, // ~ combinator
132 // Special cases for shadow DOM related selectors. 132 // Special cases for shadow DOM related selectors.
133 ShadowPiercingDescendant, // >>> combinator 133 ShadowPiercingDescendant, // >>> combinator
134 ShadowDeep, // /deep/ combinator 134 ShadowDeep, // /deep/ combinator
135 ShadowPseudo, // ::shadow pseudo element 135 ShadowPseudo, // ::shadow pseudo element
136 ShadowSlot // ::slotted() pseudo element 136 ShadowSlot // ::slotted() pseudo element
137 }; 137 };
138 138
139 enum PseudoType { 139 enum PseudoType {
140 PseudoUnknown, 140 PseudoUnknown,
141 PseudoEmpty, 141 PseudoEmpty,
142 PseudoFirstChild, 142 PseudoFirstChild,
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 } 535 }
536 536
537 inline bool CSSSelector::isIdClassOrAttributeSelector() const { 537 inline bool CSSSelector::isIdClassOrAttributeSelector() const {
538 return isAttributeSelector() || match() == CSSSelector::Id || 538 return isAttributeSelector() || match() == CSSSelector::Id ||
539 match() == CSSSelector::Class; 539 match() == CSSSelector::Class;
540 } 540 }
541 541
542 } // namespace blink 542 } // namespace blink
543 543
544 #endif // CSSSelector_h 544 #endif // CSSSelector_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPrimitiveValue.h ('k') | third_party/WebKit/Source/core/css/CSSStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698