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

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

Issue 148293008: [CSS Grid Layout] Add support to place items using named grid lines (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing v3. Fix for Debug bot Created 6 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 * 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 static EPaintOrder convertPaintOrder(StyleResolverState&, CSSValue*); 61 static EPaintOrder convertPaintOrder(StyleResolverState&, CSSValue*);
62 static PassRefPtr<ShadowList> convertShadow(StyleResolverState&, CSSValue*); 62 static PassRefPtr<ShadowList> convertShadow(StyleResolverState&, CSSValue*);
63 static float convertSpacing(StyleResolverState&, CSSValue*); 63 static float convertSpacing(StyleResolverState&, CSSValue*);
64 template <CSSValueID IdForNone> static AtomicString convertString(StyleResol verState&, CSSValue*); 64 template <CSSValueID IdForNone> static AtomicString convertString(StyleResol verState&, CSSValue*);
65 static PassRefPtr<SVGLengthList> convertStrokeDasharray(StyleResolverState&, CSSValue*); 65 static PassRefPtr<SVGLengthList> convertStrokeDasharray(StyleResolverState&, CSSValue*);
66 static Color convertSVGColor(StyleResolverState&, CSSValue*); 66 static Color convertSVGColor(StyleResolverState&, CSSValue*);
67 static PassRefPtr<SVGLength> convertSVGLength(StyleResolverState&, CSSValue* ); 67 static PassRefPtr<SVGLength> convertSVGLength(StyleResolverState&, CSSValue* );
68 static float convertTextStrokeWidth(StyleResolverState&, CSSValue*); 68 static float convertTextStrokeWidth(StyleResolverState&, CSSValue*);
69 69
70 static bool convertGridTrackList(CSSValue*, Vector<GridTrackSize>&, NamedGri dLinesMap&, OrderedNamedGridLines&, StyleResolverState&); 70 static bool convertGridTrackList(CSSValue*, Vector<GridTrackSize>&, NamedGri dLinesMap&, OrderedNamedGridLines&, StyleResolverState&);
71 static void createImplicitNamedGridLinesFromGridArea(const NamedGridAreaMap& , NamedGridLinesMap&, GridTrackSizingDirection);
71 }; 72 };
72 73
73 template <typename T> 74 template <typename T>
74 T StyleBuilderConverter::convertComputedLength(StyleResolverState& state, CSSVal ue* value) 75 T StyleBuilderConverter::convertComputedLength(StyleResolverState& state, CSSVal ue* value)
75 { 76 {
76 return toCSSPrimitiveValue(value)->computeLength<T>(state.cssToLengthConvers ionData()); 77 return toCSSPrimitiveValue(value)->computeLength<T>(state.cssToLengthConvers ionData());
77 } 78 }
78 79
79 template <typename T> 80 template <typename T>
80 T StyleBuilderConverter::convertLineWidth(StyleResolverState& state, CSSValue* v alue) 81 T StyleBuilderConverter::convertLineWidth(StyleResolverState& state, CSSValue* v alue)
(...skipping 26 matching lines...) Expand all
107 { 108 {
108 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); 109 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
109 if (primitiveValue->getValueID() == IdForNone) 110 if (primitiveValue->getValueID() == IdForNone)
110 return nullAtom; 111 return nullAtom;
111 return AtomicString(primitiveValue->getStringValue()); 112 return AtomicString(primitiveValue->getStringValue());
112 } 113 }
113 114
114 } // namespace WebCore 115 } // namespace WebCore
115 116
116 #endif 117 #endif
OLDNEW
« no previous file with comments | « Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl ('k') | Source/core/css/resolver/StyleBuilderConverter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698