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

Side by Side Diff: Source/core/css/resolver/StyleBuilderConverter.h

Issue 1162793003: Add CSS image-orientation: from-image (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add converter Created 5 years, 5 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 static bool convertGridTrackList(CSSValue*, Vector<GridTrackSize>&, NamedGri dLinesMap&, OrderedNamedGridLines&, StyleResolverState&); 96 static bool convertGridTrackList(CSSValue*, Vector<GridTrackSize>&, NamedGri dLinesMap&, OrderedNamedGridLines&, StyleResolverState&);
97 static void createImplicitNamedGridLinesFromGridArea(const NamedGridAreaMap& , NamedGridLinesMap&, GridTrackSizingDirection); 97 static void createImplicitNamedGridLinesFromGridArea(const NamedGridAreaMap& , NamedGridLinesMap&, GridTrackSizingDirection);
98 static void convertOrderedNamedGridLinesMapToNamedGridLinesMap(const Ordered NamedGridLines&, NamedGridLinesMap&); 98 static void convertOrderedNamedGridLinesMapToNamedGridLinesMap(const Ordered NamedGridLines&, NamedGridLinesMap&);
99 99
100 static ScrollSnapPoints convertSnapPoints(StyleResolverState&, CSSValue*); 100 static ScrollSnapPoints convertSnapPoints(StyleResolverState&, CSSValue*);
101 static Vector<LengthPoint> convertSnapCoordinates(StyleResolverState&, CSSVa lue*); 101 static Vector<LengthPoint> convertSnapCoordinates(StyleResolverState&, CSSVa lue*);
102 static LengthPoint convertSnapDestination(StyleResolverState&, CSSValue*); 102 static LengthPoint convertSnapDestination(StyleResolverState&, CSSValue*);
103 static PassRefPtr<TranslateTransformOperation> convertTranslate(StyleResolve rState&, CSSValue*); 103 static PassRefPtr<TranslateTransformOperation> convertTranslate(StyleResolve rState&, CSSValue*);
104 static PassRefPtr<RotateTransformOperation> convertRotate(StyleResolverState &, CSSValue*); 104 static PassRefPtr<RotateTransformOperation> convertRotate(StyleResolverState &, CSSValue*);
105 static PassRefPtr<ScaleTransformOperation> convertScale(StyleResolverState&, CSSValue*); 105 static PassRefPtr<ScaleTransformOperation> convertScale(StyleResolverState&, CSSValue*);
106 static RespectImageOrientationEnum convertImageOrientation(StyleResolverStat e&, CSSValue*);
106 }; 107 };
107 108
108 template <typename T> 109 template <typename T>
109 T StyleBuilderConverter::convertComputedLength(StyleResolverState& state, CSSVal ue* value) 110 T StyleBuilderConverter::convertComputedLength(StyleResolverState& state, CSSVal ue* value)
110 { 111 {
111 return toCSSPrimitiveValue(value)->computeLength<T>(state.cssToLengthConvers ionData()); 112 return toCSSPrimitiveValue(value)->computeLength<T>(state.cssToLengthConvers ionData());
112 } 113 }
113 114
114 template <typename T> 115 template <typename T>
115 T StyleBuilderConverter::convertFlags(StyleResolverState& state, CSSValue* value ) 116 T StyleBuilderConverter::convertFlags(StyleResolverState& state, CSSValue* value )
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 { 154 {
154 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); 155 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
155 if (primitiveValue->getValueID() == IdForNone) 156 if (primitiveValue->getValueID() == IdForNone)
156 return nullAtom; 157 return nullAtom;
157 return AtomicString(primitiveValue->getStringValue()); 158 return AtomicString(primitiveValue->getStringValue());
158 } 159 }
159 160
160 } // namespace blink 161 } // namespace blink
161 162
162 #endif 163 #endif
OLDNEW
« no previous file with comments | « Source/core/css/parser/CSSPropertyParser.cpp ('k') | Source/core/css/resolver/StyleBuilderConverter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698