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

Unified Diff: third_party/WebKit/Source/core/css/cssom/CSSUnsupportedStyleValue.cpp

Issue 2160483002: Make CSSStyleValue::toCSSValue() return a const CSSValue* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_make_cssvaluepair_take_const
Patch Set: Created 4 years, 5 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/cssom/CSSUnsupportedStyleValue.cpp
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSUnsupportedStyleValue.cpp b/third_party/WebKit/Source/core/css/cssom/CSSUnsupportedStyleValue.cpp
index 5ca9cb88a501d7007c61ef3d7412010dcba5b108..7dc753c748243f40c1a027c9735d15c987f6ac31 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSUnsupportedStyleValue.cpp
+++ b/third_party/WebKit/Source/core/css/cssom/CSSUnsupportedStyleValue.cpp
@@ -9,16 +9,15 @@
namespace blink {
-CSSValue* CSSUnsupportedStyleValue::toCSSValue() const
+const CSSValue* CSSUnsupportedStyleValue::toCSSValue() const
{
NOTREACHED();
return nullptr;
}
-CSSValue* CSSUnsupportedStyleValue::toCSSValueWithProperty(CSSPropertyID propertyID) const
+const CSSValue* CSSUnsupportedStyleValue::toCSSValueWithProperty(CSSPropertyID propertyID) const
{
- // TODO(sashab): Make CSSStyleValue return const CSSValue*s and remove this cast.
- return const_cast<CSSValue*>(CSSParser::parseSingleValue(propertyID, m_cssText, strictCSSParserContext()));
+ return CSSParser::parseSingleValue(propertyID, m_cssText, strictCSSParserContext());
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698