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

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

Issue 748073002: Use a StyleBuilderConverter function for line-height. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 static GridAutoFlow convertGridAutoFlow(StyleResolverState&, CSSValue*); 59 static GridAutoFlow convertGridAutoFlow(StyleResolverState&, CSSValue*);
60 static GridPosition convertGridPosition(StyleResolverState&, CSSValue*); 60 static GridPosition convertGridPosition(StyleResolverState&, CSSValue*);
61 static GridTrackSize convertGridTrackSize(StyleResolverState&, CSSValue*); 61 static GridTrackSize convertGridTrackSize(StyleResolverState&, CSSValue*);
62 template <typename T> static T convertLineWidth(StyleResolverState&, CSSValu e*); 62 template <typename T> static T convertLineWidth(StyleResolverState&, CSSValu e*);
63 static Length convertLength(StyleResolverState&, CSSValue*); 63 static Length convertLength(StyleResolverState&, CSSValue*);
64 static Length convertLengthOrAuto(StyleResolverState&, CSSValue*); 64 static Length convertLengthOrAuto(StyleResolverState&, CSSValue*);
65 static Length convertLengthSizing(StyleResolverState&, CSSValue*); 65 static Length convertLengthSizing(StyleResolverState&, CSSValue*);
66 static Length convertLengthMaxSizing(StyleResolverState&, CSSValue*); 66 static Length convertLengthMaxSizing(StyleResolverState&, CSSValue*);
67 static LengthPoint convertLengthPoint(StyleResolverState&, CSSValue*); 67 static LengthPoint convertLengthPoint(StyleResolverState&, CSSValue*);
68 static LineBoxContain convertLineBoxContain(StyleResolverState&, CSSValue*); 68 static LineBoxContain convertLineBoxContain(StyleResolverState&, CSSValue*);
69 static Length convertLineHeight(StyleResolverState&, CSSValue*);
69 static float convertNumberOrPercentage(StyleResolverState&, CSSValue*); 70 static float convertNumberOrPercentage(StyleResolverState&, CSSValue*);
70 static float convertPerspective(StyleResolverState&, CSSValue*); 71 static float convertPerspective(StyleResolverState&, CSSValue*);
71 static LengthPoint convertPerspectiveOrigin(StyleResolverState&, CSSValue*); 72 static LengthPoint convertPerspectiveOrigin(StyleResolverState&, CSSValue*);
72 static PassRefPtr<QuotesData> convertQuotes(StyleResolverState&, CSSValue*); 73 static PassRefPtr<QuotesData> convertQuotes(StyleResolverState&, CSSValue*);
73 static LengthSize convertRadius(StyleResolverState&, CSSValue*); 74 static LengthSize convertRadius(StyleResolverState&, CSSValue*);
74 static EPaintOrder convertPaintOrder(StyleResolverState&, CSSValue*); 75 static EPaintOrder convertPaintOrder(StyleResolverState&, CSSValue*);
75 static PassRefPtr<ShadowList> convertShadow(StyleResolverState&, CSSValue*); 76 static PassRefPtr<ShadowList> convertShadow(StyleResolverState&, CSSValue*);
76 static PassRefPtr<ShapeValue> convertShapeValue(StyleResolverState&, CSSValu e*); 77 static PassRefPtr<ShapeValue> convertShapeValue(StyleResolverState&, CSSValu e*);
77 static float convertSpacing(StyleResolverState&, CSSValue*); 78 static float convertSpacing(StyleResolverState&, CSSValue*);
78 template <CSSValueID IdForNone> static AtomicString convertString(StyleResol verState&, CSSValue*); 79 template <CSSValueID IdForNone> static AtomicString convertString(StyleResol verState&, CSSValue*);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 { 137 {
137 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value); 138 CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(value);
138 if (primitiveValue->getValueID() == IdForNone) 139 if (primitiveValue->getValueID() == IdForNone)
139 return nullAtom; 140 return nullAtom;
140 return AtomicString(primitiveValue->getStringValue()); 141 return AtomicString(primitiveValue->getStringValue());
141 } 142 }
142 143
143 } // namespace blink 144 } // namespace blink
144 145
145 #endif 146 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698