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

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

Issue 1919813002: Implementation of CSS3 nav-up/down/left/right properties from CSS3 UI Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 2014 Opera Software ASA. All rights reserved.
4 * Copyright (C) 2016 Samsung Electronics. All rights reserved.
3 * 5 *
4 * * Redistributions of source code must retain the above copyright 6 * * Redistributions of source code must retain the above copyright
5 * notice, this list of conditions and the following disclaimer. 7 * notice, this list of conditions and the following disclaimer.
6 * * Redistributions in binary form must reproduce the above 8 * * Redistributions in binary form must reproduce the above
7 * copyright notice, this list of conditions and the following disclaimer 9 * copyright notice, this list of conditions and the following disclaimer
8 * in the documentation and/or other materials provided with the 10 * in the documentation and/or other materials provided with the
9 * distribution. 11 * distribution.
10 * * Neither the name of Google Inc. nor the names of its 12 * * Neither the name of Google Inc. nor the names of its
11 * contributors may be used to endorse or promote products derived from 13 * contributors may be used to endorse or promote products derived from
12 * this software without specific prior written permission. 14 * this software without specific prior written permission.
(...skipping 14 matching lines...) Expand all
27 #ifndef StyleBuilderConverter_h 29 #ifndef StyleBuilderConverter_h
28 #define StyleBuilderConverter_h 30 #define StyleBuilderConverter_h
29 31
30 #include "core/css/CSSStringValue.h" 32 #include "core/css/CSSStringValue.h"
31 #include "core/css/CSSValue.h" 33 #include "core/css/CSSValue.h"
32 #include "core/css/CSSValueList.h" 34 #include "core/css/CSSValueList.h"
33 #include "core/css/resolver/StyleResolverState.h" 35 #include "core/css/resolver/StyleResolverState.h"
34 #include "core/style/QuotesData.h" 36 #include "core/style/QuotesData.h"
35 #include "core/style/ShadowList.h" 37 #include "core/style/ShadowList.h"
36 #include "core/style/StyleMotionRotation.h" 38 #include "core/style/StyleMotionRotation.h"
39 #include "core/style/StyleNavigationValue.h"
37 #include "core/style/StyleReflection.h" 40 #include "core/style/StyleReflection.h"
38 #include "core/style/StyleScrollSnapData.h" 41 #include "core/style/StyleScrollSnapData.h"
39 #include "core/style/TransformOrigin.h" 42 #include "core/style/TransformOrigin.h"
40 #include "platform/LengthSize.h" 43 #include "platform/LengthSize.h"
41 #include "platform/fonts/FontDescription.h" 44 #include "platform/fonts/FontDescription.h"
42 #include "platform/text/TabSize.h" 45 #include "platform/text/TabSize.h"
43 #include "wtf/Allocator.h" 46 #include "wtf/Allocator.h"
44 47
45 namespace blink { 48 namespace blink {
46 49
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 static ScrollSnapPoints convertSnapPoints(StyleResolverState&, const CSSValu e&); 108 static ScrollSnapPoints convertSnapPoints(StyleResolverState&, const CSSValu e&);
106 static Vector<LengthPoint> convertSnapCoordinates(StyleResolverState&, const CSSValue&); 109 static Vector<LengthPoint> convertSnapCoordinates(StyleResolverState&, const CSSValue&);
107 static LengthPoint convertSnapDestination(StyleResolverState&, const CSSValu e&); 110 static LengthPoint convertSnapDestination(StyleResolverState&, const CSSValu e&);
108 static PassRefPtr<TranslateTransformOperation> convertTranslate(StyleResolve rState&, const CSSValue&); 111 static PassRefPtr<TranslateTransformOperation> convertTranslate(StyleResolve rState&, const CSSValue&);
109 static PassRefPtr<RotateTransformOperation> convertRotate(StyleResolverState &, const CSSValue&); 112 static PassRefPtr<RotateTransformOperation> convertRotate(StyleResolverState &, const CSSValue&);
110 static PassRefPtr<ScaleTransformOperation> convertScale(StyleResolverState&, const CSSValue&); 113 static PassRefPtr<ScaleTransformOperation> convertScale(StyleResolverState&, const CSSValue&);
111 static RespectImageOrientationEnum convertImageOrientation(StyleResolverStat e&, const CSSValue&); 114 static RespectImageOrientationEnum convertImageOrientation(StyleResolverStat e&, const CSSValue&);
112 static PassRefPtr<StylePath> convertPathOrNone(StyleResolverState&, const CS SValue&); 115 static PassRefPtr<StylePath> convertPathOrNone(StyleResolverState&, const CS SValue&);
113 static StyleMotionRotation convertMotionRotation(const CSSValue&); 116 static StyleMotionRotation convertMotionRotation(const CSSValue&);
114 template <CSSValueID cssValueFor0, CSSValueID cssValueFor100> static Length convertPositionLength(StyleResolverState&, const CSSValue&); 117 template <CSSValueID cssValueFor0, CSSValueID cssValueFor100> static Length convertPositionLength(StyleResolverState&, const CSSValue&);
118 static StyleNavigationValue convertStyleNavigationValue(StyleResolverState&, const CSSValue&);
115 }; 119 };
116 120
117 template <typename T> 121 template <typename T>
118 T StyleBuilderConverter::convertComputedLength(StyleResolverState& state, const CSSValue& value) 122 T StyleBuilderConverter::convertComputedLength(StyleResolverState& state, const CSSValue& value)
119 { 123 {
120 return toCSSPrimitiveValue(value).computeLength<T>(state.cssToLengthConversi onData()); 124 return toCSSPrimitiveValue(value).computeLength<T>(state.cssToLengthConversi onData());
121 } 125 }
122 126
123 template <typename T> 127 template <typename T>
124 T StyleBuilderConverter::convertFlags(StyleResolverState& state, const CSSValue& value) 128 T StyleBuilderConverter::convertFlags(StyleResolverState& state, const CSSValue& value)
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 { 166 {
163 if (value.isStringValue()) 167 if (value.isStringValue())
164 return AtomicString(toCSSStringValue(value).value()); 168 return AtomicString(toCSSStringValue(value).value());
165 ASSERT(toCSSPrimitiveValue(value).getValueID() == IdForNone); 169 ASSERT(toCSSPrimitiveValue(value).getValueID() == IdForNone);
166 return nullAtom; 170 return nullAtom;
167 } 171 }
168 172
169 } // namespace blink 173 } // namespace blink
170 174
171 #endif 175 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698