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

Side by Side Diff: Source/core/css/CSSTimingFunctionValue.h

Issue 23678004: Remove superfluous CSSLinearTimingFunctionValue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 13 matching lines...) Expand all
24 */ 24 */
25 25
26 #ifndef CSSTimingFunctionValue_h 26 #ifndef CSSTimingFunctionValue_h
27 #define CSSTimingFunctionValue_h 27 #define CSSTimingFunctionValue_h
28 28
29 #include "core/css/CSSValue.h" 29 #include "core/css/CSSValue.h"
30 #include "wtf/PassRefPtr.h" 30 #include "wtf/PassRefPtr.h"
31 31
32 namespace WebCore { 32 namespace WebCore {
33 33
34 class CSSLinearTimingFunctionValue : public CSSValue {
35 public:
36 static PassRefPtr<CSSLinearTimingFunctionValue> create()
37 {
38 return adoptRef(new CSSLinearTimingFunctionValue);
39 }
40
41 String customCssText() const;
42
43 bool equals(const CSSLinearTimingFunctionValue&) const { return true; }
44
45 private:
46 CSSLinearTimingFunctionValue()
47 : CSSValue(LinearTimingFunctionClass)
48 {
49 }
50 };
51
52 class CSSCubicBezierTimingFunctionValue : public CSSValue { 34 class CSSCubicBezierTimingFunctionValue : public CSSValue {
53 public: 35 public:
54 static PassRefPtr<CSSCubicBezierTimingFunctionValue> create(double x1, doubl e y1, double x2, double y2) 36 static PassRefPtr<CSSCubicBezierTimingFunctionValue> create(double x1, doubl e y1, double x2, double y2)
55 { 37 {
56 return adoptRef(new CSSCubicBezierTimingFunctionValue(x1, y1, x2, y2)); 38 return adoptRef(new CSSCubicBezierTimingFunctionValue(x1, y1, x2, y2));
57 } 39 }
58 40
59 String customCssText() const; 41 String customCssText() const;
60 42
61 double x1() const { return m_x1; } 43 double x1() const { return m_x1; }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 { 85 {
104 } 86 }
105 87
106 int m_steps; 88 int m_steps;
107 bool m_stepAtStart; 89 bool m_stepAtStart;
108 }; 90 };
109 91
110 } // namespace 92 } // namespace
111 93
112 #endif 94 #endif
OLDNEW
« no previous file with comments | « Source/core/css/CSSComputedStyleDeclaration.cpp ('k') | Source/core/css/CSSTimingFunctionValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698