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

Unified Diff: Source/core/css/resolver/CSSAnimatableValueFactory.h

Issue 19744002: Web Animations: Add CSSAnimatableValueFactory API (partial implementation) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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: Source/core/css/resolver/CSSAnimatableValueFactory.h
diff --git a/Source/core/html/ime/Composition.h b/Source/core/css/resolver/CSSAnimatableValueFactory.h
similarity index 75%
copy from Source/core/html/ime/Composition.h
copy to Source/core/css/resolver/CSSAnimatableValueFactory.h
index 6562b5f75fd19cc8e80409327f7f8a5881bcf1df..32e091e7bfec31ee4c89ba91583205f89527d887 100644
--- a/Source/core/html/ime/Composition.h
+++ b/Source/core/css/resolver/CSSAnimatableValueFactory.h
@@ -28,34 +28,27 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef Composition_h
-#define Composition_h
+#ifndef CSSAnimatableValueFactory_h
+#define CSSAnimatableValueFactory_h
-#include "bindings/v8/ScriptWrappable.h"
dstockwell 2013/07/18 07:43:12 Upload with --no-find-copies
+#include "CSSPropertyNames.h"
+#include "core/animation/AnimatableValue.h"
+#include "core/platform/Length.h"
#include "wtf/PassRefPtr.h"
-#include "wtf/RefCounted.h"
-#include "wtf/RefPtr.h"
namespace WebCore {
-class Node;
-class Range;
+class CSSValue;
+class RenderStyle;
-class Composition : public RefCounted<Composition>, public ScriptWrappable {
+class CSSAnimatableValueFactory {
public:
- static PassRefPtr<Composition> create(Node*, Range*);
- ~Composition();
-
- Node* text() const { return m_text.get(); }
- Range* caret() const { return m_caret.get(); }
-
+ static PassRefPtr<AnimatableValue> createFromCSSValue(CSSValue*, CSSPropertyID);
+ static PassRefPtr<AnimatableValue> createFromRenderStyle(RenderStyle*, CSSPropertyID);
private:
- Composition(Node*, Range*);
-
- RefPtr<Node> m_text;
- RefPtr<Range> m_caret;
+ static PassRefPtr<AnimatableValue> createFromLength(const Length&, RenderStyle*);
};
} // namespace WebCore
-#endif // Composition_h
+#endif // CSSAnimatableValueFactory_h

Powered by Google App Engine
This is Rietveld 408576698