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

Side by Side Diff: Source/core/animation/css/CSSAnimatableValueFactory.cpp

Issue 1303173007: Oilpan: Unship Oilpan from CSSValues Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 inline static PassRefPtrWillBeRawPtr<AnimatableValue> createFromLengthSize(const LengthSize& lengthSize, const ComputedStyle& style) 172 inline static PassRefPtrWillBeRawPtr<AnimatableValue> createFromLengthSize(const LengthSize& lengthSize, const ComputedStyle& style)
173 { 173 {
174 return AnimatableLengthSize::create( 174 return AnimatableLengthSize::create(
175 createFromLength(lengthSize.width(), style), 175 createFromLength(lengthSize.width(), style),
176 createFromLength(lengthSize.height(), style)); 176 createFromLength(lengthSize.height(), style));
177 } 177 }
178 178
179 inline static PassRefPtrWillBeRawPtr<AnimatableValue> createFromStyleImage(Style Image* image) 179 inline static PassRefPtrWillBeRawPtr<AnimatableValue> createFromStyleImage(Style Image* image)
180 { 180 {
181 if (image) { 181 if (image) {
182 if (RefPtrWillBeRawPtr<CSSValue> cssValue = image->cssValue()) 182 if (RefPtr<CSSValue> cssValue = image->cssValue())
183 return AnimatableImage::create(cssValue.release()); 183 return AnimatableImage::create(cssValue.release());
184 } 184 }
185 return AnimatableUnknown::create(CSSValueNone); 185 return AnimatableUnknown::create(CSSValueNone);
186 } 186 }
187 187
188 inline static PassRefPtrWillBeRawPtr<AnimatableValue> createFromFillSize(const F illSize& fillSize, const ComputedStyle& style) 188 inline static PassRefPtrWillBeRawPtr<AnimatableValue> createFromFillSize(const F illSize& fillSize, const ComputedStyle& style)
189 { 189 {
190 switch (fillSize.type) { 190 switch (fillSize.type) {
191 case SizeLength: 191 case SizeLength:
192 return createFromLengthSize(fillSize.size, style); 192 return createFromLengthSize(fillSize.size, style);
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 if (style.hasAutoZIndex()) 591 if (style.hasAutoZIndex())
592 return AnimatableUnknown::create(CSSValueAuto); 592 return AnimatableUnknown::create(CSSValueAuto);
593 return createFromDouble(style.zIndex()); 593 return createFromDouble(style.zIndex());
594 default: 594 default:
595 ASSERT_NOT_REACHED(); 595 ASSERT_NOT_REACHED();
596 return nullptr; 596 return nullptr;
597 } 597 }
598 } 598 }
599 599
600 } // namespace blink 600 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/animation/animatable/AnimatableUnknown.h ('k') | Source/core/css/BasicShapeFunctions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698