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

Side by Side Diff: third_party/WebKit/Source/platform/animation/AnimationTranslationUtil.cpp

Issue 2616863002: Remove TransformOperation::None (Closed)
Patch Set: Created 3 years, 11 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 case TransformOperation::Interpolated: { 113 case TransformOperation::Interpolated: {
114 TransformationMatrix m; 114 TransformationMatrix m;
115 operation->apply(m, FloatSize()); 115 operation->apply(m, FloatSize());
116 outTransformOperations->appendMatrix( 116 outTransformOperations->appendMatrix(
117 TransformationMatrix::toSkMatrix44(m)); 117 TransformationMatrix::toSkMatrix44(m));
118 break; 118 break;
119 } 119 }
120 case TransformOperation::Identity: 120 case TransformOperation::Identity:
121 outTransformOperations->appendIdentity(); 121 outTransformOperations->appendIdentity();
122 break; 122 break;
123 case TransformOperation::None:
Justin Novosad 2017/01/10 16:40:03 Nit: perhaps a "default:" for this switch? Your ca
124 // Do nothing.
125 break;
126 } // switch 123 } // switch
127 } // for each operation 124 } // for each operation
128 } 125 }
129 126
130 } // namespace blink 127 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698