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

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

Issue 2032243003: Make CSSValueList store const CSSValues (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_make_computedstyledeclaration_return_const
Patch Set: Small fix n CSSOM Created 4 years, 6 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/CSSValueList.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSValueList.cpp b/third_party/WebKit/Source/core/css/CSSValueList.cpp
index c00c5bbb34479df87ee436da841ea10df259423a..a95f27fdcdb9942a940019b73ec8cb76b674c48f 100644
--- a/third_party/WebKit/Source/core/css/CSSValueList.cpp
+++ b/third_party/WebKit/Source/core/css/CSSValueList.cpp
@@ -42,7 +42,7 @@ bool CSSValueList::removeAll(const CSSValue& val)
{
bool found = false;
for (int index = m_values.size() - 1; index >= 0; --index) {
- Member<CSSValue>& value = m_values.at(index);
+ Member<const CSSValue>& value = m_values.at(index);
if (value && value->equals(val)) {
m_values.remove(index);
found = true;
@@ -55,7 +55,7 @@ bool CSSValueList::removeAll(const CSSValue& val)
bool CSSValueList::hasValue(const CSSValue& val) const
{
for (size_t index = 0; index < m_values.size(); index++) {
- const Member<CSSValue>& value = m_values.at(index);
+ const Member<const CSSValue>& value = m_values.at(index);
if (value && value->equals(val))
return true;
}
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSValueList.h ('k') | third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698