Chromium Code Reviews| 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 |