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

Unified Diff: third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp

Issue 2651533005: Make StyleResolverState argument a pointer in maybeConvertValue() (Closed)
Patch Set: Rebased 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp
index ef834b9901f66bc7c9069ab54edd64237f68db44..8d16321df5192719b452309bc0f6cbb7b0564b5a 100644
--- a/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp
@@ -212,11 +212,13 @@ enum InterpolableColorPairIndex : unsigned {
InterpolationValue CSSColorInterpolationType::maybeConvertValue(
const CSSValue& value,
- const StyleResolverState& state,
+ const StyleResolverState* state,
ConversionCheckers& conversionCheckers) const {
if (cssProperty() == CSSPropertyColor && value.isIdentifierValue() &&
- toCSSIdentifierValue(value).getValueID() == CSSValueCurrentcolor)
- return maybeConvertInherit(state, conversionCheckers);
+ toCSSIdentifierValue(value).getValueID() == CSSValueCurrentcolor) {
+ DCHECK(state);
+ return maybeConvertInherit(*state, conversionCheckers);
+ }
std::unique_ptr<InterpolableValue> interpolableColor =
maybeCreateInterpolableColor(value);

Powered by Google App Engine
This is Rietveld 408576698