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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp

Issue 1649003002: Use StylePath instead of (Path)StyleMotionPath (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * * Redistributions of source code must retain the above copyright 4 * * Redistributions of source code must retain the above copyright
5 * notice, this list of conditions and the following disclaimer. 5 * notice, this list of conditions and the following disclaimer.
6 * * Redistributions in binary form must reproduce the above 6 * * Redistributions in binary form must reproduce the above
7 * copyright notice, this list of conditions and the following disclaimer 7 * copyright notice, this list of conditions and the following disclaimer
8 * in the documentation and/or other materials provided with the 8 * in the documentation and/or other materials provided with the
9 * distribution. 9 * distribution.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 968
969 return ScaleTransformOperation::create(sx, sy, sz, TransformOperation::Scale 3D); 969 return ScaleTransformOperation::create(sx, sy, sz, TransformOperation::Scale 3D);
970 } 970 }
971 971
972 RespectImageOrientationEnum StyleBuilderConverter::convertImageOrientation(Style ResolverState& state, const CSSValue& value) 972 RespectImageOrientationEnum StyleBuilderConverter::convertImageOrientation(Style ResolverState& state, const CSSValue& value)
973 { 973 {
974 const CSSPrimitiveValue& primitiveValue = toCSSPrimitiveValue(value); 974 const CSSPrimitiveValue& primitiveValue = toCSSPrimitiveValue(value);
975 return primitiveValue.getValueID() == CSSValueFromImage ? RespectImageOrient ation : DoNotRespectImageOrientation; 975 return primitiveValue.getValueID() == CSSValueFromImage ? RespectImageOrient ation : DoNotRespectImageOrientation;
976 } 976 }
977 977
978 PassRefPtr<StylePath> StyleBuilderConverter::convertPath(StyleResolverState&, CS SValue& value) 978 PassRefPtr<StylePath> StyleBuilderConverter::convertPath(StyleResolverState&, co nst CSSValue& value)
979 { 979 {
980 return toCSSPathValue(value).cachedPath(); 980 return toCSSPathValue(value).cachedPath();
981 } 981 }
982 982
983 PassRefPtr<StylePath> StyleBuilderConverter::convertPathOrNone(StyleResolverStat e& state, const CSSValue& value)
984 {
985 if (value.isPathValue())
986 return convertPath(state, value);
987 ASSERT(value.isPrimitiveValue() && toCSSPrimitiveValue(value).getValueID() = = CSSValueNone);
988 return nullptr;
989 }
990
983 } // namespace blink 991 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698