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

Unified Diff: third_party/WebKit/Source/core/animation/InterpolationEnvironment.h

Issue 1414413002: SVG Web Animations: Add SVGInterpolationType pipeline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_svgAttributeReference
Patch Set: Move assert to not wrong location Created 5 years, 2 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 | third_party/WebKit/Source/core/animation/SVGInterpolationType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/animation/InterpolationEnvironment.h
diff --git a/third_party/WebKit/Source/core/animation/InterpolationEnvironment.h b/third_party/WebKit/Source/core/animation/InterpolationEnvironment.h
index ac22bfa11075b0b3e6f4705a6a79092d590e10d3..dc756bec4d477f3a28a9ef7eac19387b437e41ec 100644
--- a/third_party/WebKit/Source/core/animation/InterpolationEnvironment.h
+++ b/third_party/WebKit/Source/core/animation/InterpolationEnvironment.h
@@ -10,19 +10,36 @@
namespace blink {
class StyleResolverState;
+class SVGPropertyBase;
+class SVGElement;
class InterpolationEnvironment {
STACK_ALLOCATED();
public:
explicit InterpolationEnvironment(StyleResolverState& state)
: m_state(&state)
+ , m_svgElement(nullptr)
+ , m_svgBaseValue(nullptr)
+ { }
+
+ explicit InterpolationEnvironment(SVGElement& svgElement, const SVGPropertyBase& svgBaseValue)
+ : m_state(nullptr)
+ , m_svgElement(&svgElement)
+ , m_svgBaseValue(&svgBaseValue)
{ }
StyleResolverState& state() { ASSERT(m_state); return *m_state; }
const StyleResolverState& state() const { ASSERT(m_state); return *m_state; }
+ SVGElement& svgElement() { ASSERT(m_svgElement); return *m_svgElement; }
+ const SVGElement& svgElement() const { ASSERT(m_svgElement); return *m_svgElement; }
+
+ const SVGPropertyBase& svgBaseValue() const { ASSERT(m_svgBaseValue); return *m_svgBaseValue; }
+
private:
StyleResolverState* m_state;
+ SVGElement* m_svgElement;
+ const SVGPropertyBase* m_svgBaseValue;
};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/SVGInterpolationType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698