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

Side by Side Diff: third_party/WebKit/Source/platform/animation/AnimationUtilities.h

Issue 2390833002: reflow comments in platform/{animation,blob,clipboard,exported} (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 blend(from.y(), to.y(), progress)); 70 blend(from.y(), to.y(), progress));
71 } 71 }
72 72
73 inline FloatPoint blend(const FloatPoint& from, 73 inline FloatPoint blend(const FloatPoint& from,
74 const FloatPoint& to, 74 const FloatPoint& to,
75 double progress) { 75 double progress) {
76 return FloatPoint(blend(from.x(), to.x(), progress), 76 return FloatPoint(blend(from.x(), to.x(), progress),
77 blend(from.y(), to.y(), progress)); 77 blend(from.y(), to.y(), progress));
78 } 78 }
79 79
80 // Calculates the accuracy for evaluating a timing function for an animation wit h the specified duration. 80 // Calculates the accuracy for evaluating a timing function for an animation
81 // with the specified duration.
81 inline double accuracyForDuration(double duration) { 82 inline double accuracyForDuration(double duration) {
82 return std::max(1.0 / (200.0 * duration), 83 return std::max(1.0 / (200.0 * duration),
83 gfx::CubicBezier::GetDefaultEpsilon()); 84 gfx::CubicBezier::GetDefaultEpsilon());
84 } 85 }
85 86
86 } // namespace blink 87 } // namespace blink
87 88
88 #endif // AnimationUtilities_h 89 #endif // AnimationUtilities_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698