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

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

Issue 2649903005: blink: fix use-after-scope issues in CSSInterpolationType. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/animation/CSSInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSInterpolationType.cpp
index 56f5e359f37fd2718294bd0ffc6af5596e641c25..c15db7de439ddc884aa8f714245b961ac1073afd 100644
--- a/third_party/WebKit/Source/core/animation/CSSInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSInterpolationType.cpp
@@ -251,7 +251,8 @@ InterpolationValue CSSInterpolationType::maybeConvertUnderlyingValue(
return maybeConvertStandardPropertyUnderlyingValue(state);
}
- const AtomicString& name = getProperty().customPropertyName();
+ const PropertyHandle property = getProperty();
dgozman 2017/01/23 20:09:15 Should we instead make getProperty() return |const
krasin1 2017/01/23 20:13:34 I suppose it's a question to Alan and other WebKit
alancutter (OOO until 2018) 2017/01/23 22:21:33 I'm happy to do this along with a host of other si
krasin1 2017/01/23 22:56:01 ack.
+ const AtomicString& name = property.customPropertyName();
const PropertyRegistry::Registration* registration =
getRegistration(state, name);
if (!registration) {
@@ -302,7 +303,8 @@ void CSSInterpolationType::applyCustomPropertyValue(
RefPtr<CSSVariableData> variableData = CSSVariableData::create(
tokenizer.tokenRange(), isAnimationTainted, needsVariableResolution);
ComputedStyle& style = *state.style();
- const AtomicString& propertyName = getProperty().customPropertyName();
+ const PropertyHandle property = getProperty();
+ const AtomicString& propertyName = property.customPropertyName();
const PropertyRegistry::Registration* registration =
getRegistration(state, propertyName);
DCHECK(registration);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698