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

Unified Diff: Source/core/css/StylePropertySet.cpp

Issue 23464095: WTF::notFound looks too much like a local variable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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
« no previous file with comments | « Source/core/css/StyleInvalidationAnalysis.cpp ('k') | Source/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/StylePropertySet.cpp
diff --git a/Source/core/css/StylePropertySet.cpp b/Source/core/css/StylePropertySet.cpp
index 8df65b850b2c61cd7b3fc2056dc228650bf3e486..d084e31c9b4487f0651b084f376a15fdaee477a4 100644
--- a/Source/core/css/StylePropertySet.cpp
+++ b/Source/core/css/StylePropertySet.cpp
@@ -138,7 +138,7 @@ String StylePropertySet::variableValue(const AtomicString& name) const
{
ASSERT(RuntimeEnabledFeatures::cssVariablesEnabled());
size_t index = findVariableIndex(name);
- if (index == notFound)
+ if (index == kNotFound)
return String();
return toCSSVariableValue(propertyAt(index).value())->value();
}
@@ -284,14 +284,14 @@ bool MutableStylePropertySet::setVariableValue(const AtomicString& name, const S
return removeVariable(name);
size_t index = findVariableIndex(name);
- if (index != notFound) {
+ if (index != kNotFound) {
CSSValue* cssValue = m_propertyVector.at(index).value();
if (toCSSVariableValue(cssValue)->value() == value)
return false;
}
CSSProperty property(CSSPropertyVariable, CSSVariableValue::create(name, value), important);
- if (index == notFound)
+ if (index == kNotFound)
m_propertyVector.append(property);
else
m_propertyVector.at(index) = property;
@@ -498,7 +498,7 @@ size_t StylePropertySet::findVariableIndex(const AtomicString& name) const
if (property.id() == CSSPropertyVariable && toCSSVariableValue(property.value())->name() == name)
return i;
}
- return notFound;
+ return kNotFound;
}
CSSProperty* MutableStylePropertySet::findCSSPropertyWithID(CSSPropertyID propertyID)
@@ -549,7 +549,7 @@ bool MutableStylePropertySet::removeVariable(const AtomicString& name)
{
ASSERT(RuntimeEnabledFeatures::cssVariablesEnabled());
size_t index = findVariableIndex(name);
- if (index == notFound)
+ if (index == kNotFound)
return false;
m_propertyVector.remove(index);
return true;
« no previous file with comments | « Source/core/css/StyleInvalidationAnalysis.cpp ('k') | Source/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698