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

Unified Diff: third_party/WebKit/Source/core/css/CSSSelector.cpp

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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/CSSSelector.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSSelector.cpp b/third_party/WebKit/Source/core/css/CSSSelector.cpp
index edba6642db18be004314e8928cfce08855e7aab1..89d130750e122e0511d45c2ec8489e672408c01d 100644
--- a/third_party/WebKit/Source/core/css/CSSSelector.cpp
+++ b/third_party/WebKit/Source/core/css/CSSSelector.cpp
@@ -3,7 +3,8 @@
* 1999 Waldo Bastian (bastian@kde.org)
* 2001 Andreas Schlapbach (schlpbch@iam.unibe.ch)
* 2001-2003 Dirk Mueller (mueller@kde.org)
- * Copyright (C) 2002, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
+ * Copyright (C) 2002, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
+ * reserved.
* Copyright (C) 2008 David Smith (catfish.man@gmail.com)
* Copyright (C) 2010 Google Inc. All rights reserved.
*
@@ -93,8 +94,8 @@ unsigned CSSSelector::specificity() const {
}
inline unsigned CSSSelector::specificityForOneSelector() const {
- // FIXME: Pseudo-elements and pseudo-classes do not have the same specificity. This function
- // isn't quite correct.
+ // FIXME: Pseudo-elements and pseudo-classes do not have the same specificity.
+ // This function isn't quite correct.
// http://www.w3.org/TR/selectors/#specificity
switch (m_match) {
case Id:
@@ -398,7 +399,8 @@ class NameToPseudoCompare {
bool operator()(const NameToPseudoStruct& entry, const NameToPseudoStruct&) {
ASSERT(entry.string);
const char* key = reinterpret_cast<const char*>(m_key.characters8());
- // If strncmp returns 0, then either the keys are equal, or |m_key| sorts before |entry|.
+ // If strncmp returns 0, then either the keys are equal, or |m_key| sorts
+ // before |entry|.
return strncmp(entry.string, key, m_key.length()) < 0;
}
@@ -866,13 +868,15 @@ bool CSSSelector::isCompound() const {
unsigned CSSSelector::computeLinkMatchType() const {
unsigned linkMatchType = MatchAll;
- // Determine if this selector will match a link in visited, unvisited or any state, or never.
+ // Determine if this selector will match a link in visited, unvisited or any
+ // state, or never.
// :visited never matches other elements than the innermost link element.
for (const CSSSelector* current = this; current;
current = current->tagHistory()) {
switch (current->getPseudoType()) {
case PseudoNot: {
- // :not(:visited) is equivalent to :link. Parser enforces that :not can't nest.
+ // :not(:visited) is equivalent to :link. Parser enforces that :not
+ // can't nest.
ASSERT(current->selectorList());
for (const CSSSelector* subSelector = current->selectorList()->first();
subSelector; subSelector = subSelector->tagHistory()) {
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSSelector.h ('k') | third_party/WebKit/Source/core/css/CSSSelectorList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698