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

Side by Side Diff: Source/core/animation/LengthStyleInterpolation.cpp

Issue 1115553002: Removing blink::prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 7 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
« no previous file with comments | « Source/core/animation/Keyframe.h ('k') | Source/core/animation/StringKeyframe.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "config.h" 5 #include "config.h"
6 #include "core/animation/LengthStyleInterpolation.h" 6 #include "core/animation/LengthStyleInterpolation.h"
7 7
8 #include "core/animation/css/CSSAnimatableValueFactory.h" 8 #include "core/animation/css/CSSAnimatableValueFactory.h"
9 #include "core/css/CSSCalculationValue.h" 9 #include "core/css/CSSCalculationValue.h"
10 #include "core/css/resolver/StyleBuilder.h" 10 #include "core/css/resolver/StyleBuilder.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 default: 47 default:
48 return false; 48 return false;
49 } 49 }
50 } 50 }
51 51
52 } // namespace 52 } // namespace
53 53
54 bool LengthStyleInterpolation::canCreateFrom(const CSSValue& value, CSSPropertyI D property) 54 bool LengthStyleInterpolation::canCreateFrom(const CSSValue& value, CSSPropertyI D property)
55 { 55 {
56 if (value.isPrimitiveValue()) { 56 if (value.isPrimitiveValue()) {
57 const CSSPrimitiveValue& primitiveValue = blink::toCSSPrimitiveValue(val ue); 57 const CSSPrimitiveValue& primitiveValue = toCSSPrimitiveValue(value);
58 if (primitiveValue.cssCalcValue()) 58 if (primitiveValue.cssCalcValue())
59 return true; 59 return true;
60 60
61 if (primitiveValue.isValueID()) { 61 if (primitiveValue.isValueID()) {
62 CSSValueID valueID = primitiveValue.getValueID(); 62 CSSValueID valueID = primitiveValue.getValueID();
63 double pixels; 63 double pixels;
64 return pixelsForKeyword(property, valueID, pixels); 64 return pixelsForKeyword(property, valueID, pixels);
65 } 65 }
66 66
67 CSSPrimitiveValue::LengthUnitType type; 67 CSSPrimitiveValue::LengthUnitType type;
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 StyleBuilder::applyProperty(m_id, state, fromInterpolableValue(*m_cached Value, m_range).get()); 326 StyleBuilder::applyProperty(m_id, state, fromInterpolableValue(*m_cached Value, m_range).get());
327 } 327 }
328 } 328 }
329 329
330 DEFINE_TRACE(LengthStyleInterpolation) 330 DEFINE_TRACE(LengthStyleInterpolation)
331 { 331 {
332 StyleInterpolation::trace(visitor); 332 StyleInterpolation::trace(visitor);
333 } 333 }
334 334
335 } 335 }
OLDNEW
« no previous file with comments | « Source/core/animation/Keyframe.h ('k') | Source/core/animation/StringKeyframe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698