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

Side by Side Diff: third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.cpp

Issue 2951763002: CSS Properties & Values API: replace transform-function with transform-list. (Closed)
Patch Set: move Created 3 years, 6 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/animation/CSSInterpolationTypesMap.h" 5 #include "core/animation/CSSInterpolationTypesMap.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include "core/animation/CSSAngleInterpolationType.h" 8 #include "core/animation/CSSAngleInterpolationType.h"
9 #include "core/animation/CSSBasicShapeInterpolationType.h" 9 #include "core/animation/CSSBasicShapeInterpolationType.h"
10 #include "core/animation/CSSBorderImageLengthBoxInterpolationType.h" 10 #include "core/animation/CSSBorderImageLengthBoxInterpolationType.h"
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 case CSSSyntaxType::kResolution: 365 case CSSSyntaxType::kResolution:
366 result.push_back( 366 result.push_back(
367 WTF::MakeUnique<CSSResolutionInterpolationType>(property)); 367 WTF::MakeUnique<CSSResolutionInterpolationType>(property));
368 break; 368 break;
369 case CSSSyntaxType::kTime: 369 case CSSSyntaxType::kTime:
370 result.push_back(WTF::MakeUnique<CSSTimeInterpolationType>(property)); 370 result.push_back(WTF::MakeUnique<CSSTimeInterpolationType>(property));
371 break; 371 break;
372 case CSSSyntaxType::kImage: 372 case CSSSyntaxType::kImage:
373 case CSSSyntaxType::kUrl: 373 case CSSSyntaxType::kUrl:
374 case CSSSyntaxType::kInteger: 374 case CSSSyntaxType::kInteger:
375 case CSSSyntaxType::kTransformFunction: 375 case CSSSyntaxType::kTransformList:
376 // TODO(alancutter): Support smooth interpolation of these types. 376 // TODO(alancutter): Support smooth interpolation of these types.
377 break; 377 break;
378 case CSSSyntaxType::kTokenStream: 378 case CSSSyntaxType::kTokenStream:
379 case CSSSyntaxType::kIdent: 379 case CSSSyntaxType::kIdent:
380 case CSSSyntaxType::kCustomIdent: 380 case CSSSyntaxType::kCustomIdent:
381 // Uses the CSSValueInterpolationType added below. 381 // Uses the CSSValueInterpolationType added below.
382 break; 382 break;
383 default: 383 default:
384 NOTREACHED(); 384 NOTREACHED();
385 break; 385 break;
386 } 386 }
387 } 387 }
388 result.push_back(WTF::MakeUnique<CSSValueInterpolationType>(property)); 388 result.push_back(WTF::MakeUnique<CSSValueInterpolationType>(property));
389 return result; 389 return result;
390 } 390 }
391 391
392 } // namespace blink 392 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698