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

Unified Diff: Source/core/svg/SVGPathBlender.h

Issue 1048913004: Eliminate use of and remove PathCoordinateMode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 5 years, 9 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 | Source/core/svg/SVGPathBlender.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGPathBlender.h
diff --git a/Source/core/svg/SVGPathBlender.h b/Source/core/svg/SVGPathBlender.h
index 403dd291e4d05c3500b1a27af70ab46437464fb2..60b2ba905c68e0dd70e08ee1968dafca7dfd2e82 100644
--- a/Source/core/svg/SVGPathBlender.h
+++ b/Source/core/svg/SVGPathBlender.h
@@ -20,9 +20,9 @@
#ifndef SVGPathBlender_h
#define SVGPathBlender_h
-#include "core/svg/SVGPathConsumer.h"
#include "platform/geometry/FloatPoint.h"
#include "platform/heap/Handle.h"
+#include "wtf/Noncopyable.h"
namespace blink {
@@ -32,6 +32,7 @@ enum FloatBlendMode {
};
struct PathSegmentData;
+class SVGPathConsumer;
class SVGPathSource;
class SVGPathBlender : public NoBaseWillBeGarbageCollectedFinalized<SVGPathBlender> {
@@ -67,11 +68,14 @@ private:
FloatPoint m_fromCurrentPoint;
FloatPoint m_toCurrentPoint;
- PathCoordinateMode m_fromMode;
- PathCoordinateMode m_toMode;
float m_progress;
unsigned m_addTypesCount;
bool m_isInFirstHalfOfAnimation;
+ // This is per-segment blend state corresponding to the 'from' and 'to'
+ // segments currently being blended, and only used within blendSegments().
+ bool m_typesAreEqual;
+ bool m_fromIsAbsolute;
+ bool m_toIsAbsolute;
};
} // namespace blink
« no previous file with comments | « no previous file | Source/core/svg/SVGPathBlender.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698