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

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

Issue 643893002: Store [-webkit-]perspective-origin as a LengthPoint. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase (again). Created 6 years, 2 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 static GridTrackSize convertGridTrackSize(StyleResolverState&, CSSValue*); 60 static GridTrackSize convertGridTrackSize(StyleResolverState&, CSSValue*);
61 template <typename T> static T convertLineWidth(StyleResolverState&, CSSValu e*); 61 template <typename T> static T convertLineWidth(StyleResolverState&, CSSValu e*);
62 static Length convertLength(StyleResolverState&, CSSValue*); 62 static Length convertLength(StyleResolverState&, CSSValue*);
63 static Length convertLengthOrAuto(StyleResolverState&, CSSValue*); 63 static Length convertLengthOrAuto(StyleResolverState&, CSSValue*);
64 static Length convertLengthSizing(StyleResolverState&, CSSValue*); 64 static Length convertLengthSizing(StyleResolverState&, CSSValue*);
65 static Length convertLengthMaxSizing(StyleResolverState&, CSSValue*); 65 static Length convertLengthMaxSizing(StyleResolverState&, CSSValue*);
66 static LengthPoint convertLengthPoint(StyleResolverState&, CSSValue*); 66 static LengthPoint convertLengthPoint(StyleResolverState&, CSSValue*);
67 static LineBoxContain convertLineBoxContain(StyleResolverState&, CSSValue*); 67 static LineBoxContain convertLineBoxContain(StyleResolverState&, CSSValue*);
68 static float convertNumberOrPercentage(StyleResolverState&, CSSValue*); 68 static float convertNumberOrPercentage(StyleResolverState&, CSSValue*);
69 static float convertPerspective(StyleResolverState&, CSSValue*); 69 static float convertPerspective(StyleResolverState&, CSSValue*);
70 static LengthPoint convertPerspectiveOrigin(StyleResolverState&, CSSValue*);
70 static PassRefPtr<QuotesData> convertQuotes(StyleResolverState&, CSSValue*); 71 static PassRefPtr<QuotesData> convertQuotes(StyleResolverState&, CSSValue*);
71 static LengthSize convertRadius(StyleResolverState&, CSSValue*); 72 static LengthSize convertRadius(StyleResolverState&, CSSValue*);
72 static EPaintOrder convertPaintOrder(StyleResolverState&, CSSValue*); 73 static EPaintOrder convertPaintOrder(StyleResolverState&, CSSValue*);
73 static PassRefPtr<ShadowList> convertShadow(StyleResolverState&, CSSValue*); 74 static PassRefPtr<ShadowList> convertShadow(StyleResolverState&, CSSValue*);
74 static float convertSpacing(StyleResolverState&, CSSValue*); 75 static float convertSpacing(StyleResolverState&, CSSValue*);
75 template <CSSValueID IdForNone> static AtomicString convertString(StyleResol verState&, CSSValue*); 76 template <CSSValueID IdForNone> static AtomicString convertString(StyleResol verState&, CSSValue*);
76 static PassRefPtr<SVGLengthList> convertStrokeDasharray(StyleResolverState&, CSSValue*); 77 static PassRefPtr<SVGLengthList> convertStrokeDasharray(StyleResolverState&, CSSValue*);
77 static StyleColor convertStyleColor(StyleResolverState&, CSSValue*, bool for VisitedLink = false); 78 static StyleColor convertStyleColor(StyleResolverState&, CSSValue*, bool for VisitedLink = false);
78 static Color convertSVGColor(StyleResolverState&, CSSValue*); 79 static Color convertSVGColor(StyleResolverState&, CSSValue*);
79 static PassRefPtr<SVGLength> convertSVGLength(StyleResolverState&, CSSValue* ); 80 static PassRefPtr<SVGLength> convertSVGLength(StyleResolverState&, CSSValue* );
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 { 132 {
132 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); 133 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
133 if (primitiveValue->getValueID() == IdForNone) 134 if (primitiveValue->getValueID() == IdForNone)
134 return nullAtom; 135 return nullAtom;
135 return AtomicString(primitiveValue->getStringValue()); 136 return AtomicString(primitiveValue->getStringValue());
136 } 137 }
137 138
138 } // namespace blink 139 } // namespace blink
139 140
140 #endif 141 #endif
OLDNEW
« no previous file with comments | « Source/core/css/resolver/AnimatedStyleBuilder.cpp ('k') | Source/core/css/resolver/StyleBuilderConverter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698