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

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

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
« no previous file with comments | « Source/core/css/CSSTimingFunctionValue.h ('k') | Source/core/css/CSSToStyleMap.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Computer, 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 12 matching lines...) Expand all
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 #include "core/css/CSSTimingFunctionValue.h" 27 #include "core/css/CSSTimingFunctionValue.h"
28 28
29 #include "wtf/text/WTFString.h" 29 #include "wtf/text/WTFString.h"
30 30
31 namespace WebCore { 31 namespace WebCore {
32 32
33 String CSSLinearTimingFunctionValue::customCssText() const
34 {
35 return "linear";
36 }
37
38 String CSSCubicBezierTimingFunctionValue::customCssText() const 33 String CSSCubicBezierTimingFunctionValue::customCssText() const
39 { 34 {
40 return "cubic-bezier(" 35 return "cubic-bezier("
41 + String::number(m_x1) + ", " 36 + String::number(m_x1) + ", "
42 + String::number(m_y1) + ", " 37 + String::number(m_y1) + ", "
43 + String::number(m_x2) + ", " 38 + String::number(m_x2) + ", "
44 + String::number(m_y2) + ")"; 39 + String::number(m_y2) + ")";
45 } 40 }
46 41
47 bool CSSCubicBezierTimingFunctionValue::equals(const CSSCubicBezierTimingFunctio nValue& other) const 42 bool CSSCubicBezierTimingFunctionValue::equals(const CSSCubicBezierTimingFunctio nValue& other) const
48 { 43 {
49 return m_x1 == other.m_x1 && m_x2 == other.m_x2 && m_y1 == other.m_y1 && m_y 2 == other.m_y2; 44 return m_x1 == other.m_x1 && m_x2 == other.m_x2 && m_y1 == other.m_y1 && m_y 2 == other.m_y2;
50 } 45 }
51 46
52 String CSSStepsTimingFunctionValue::customCssText() const 47 String CSSStepsTimingFunctionValue::customCssText() const
53 { 48 {
54 return "steps(" + String::number(m_steps) + ", " + (m_stepAtStart ? "start" : "end") + ')'; 49 return "steps(" + String::number(m_steps) + ", " + (m_stepAtStart ? "start" : "end") + ')';
55 } 50 }
56 51
57 bool CSSStepsTimingFunctionValue::equals(const CSSStepsTimingFunctionValue& othe r) const 52 bool CSSStepsTimingFunctionValue::equals(const CSSStepsTimingFunctionValue& othe r) const
58 { 53 {
59 return m_steps == other.m_steps && m_stepAtStart == other.m_stepAtStart; 54 return m_steps == other.m_steps && m_stepAtStart == other.m_stepAtStart;
60 } 55 }
61 56
62 } // namespace WebCore 57 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/CSSTimingFunctionValue.h ('k') | Source/core/css/CSSToStyleMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698