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

Side by Side Diff: Source/core/css/parser/SizesCalcParser.cpp

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: with missing files Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/css/parser/SizesCalcParser.h" 6 #include "core/css/parser/SizesCalcParser.h"
7 7
8 #include "core/css/MediaValues.h" 8 #include "core/css/MediaValues.h"
9 #include "core/css/parser/CSSParserToken.h" 9 #include "core/css/parser/CSSParserToken.h"
10 10
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 case WhitespaceToken: 129 case WhitespaceToken:
130 case EOFToken: 130 case EOFToken:
131 break; 131 break;
132 case CommentToken: 132 case CommentToken:
133 ASSERT_NOT_REACHED(); 133 ASSERT_NOT_REACHED();
134 case CDOToken: 134 case CDOToken:
135 case CDCToken: 135 case CDCToken:
136 case AtKeywordToken: 136 case AtKeywordToken:
137 case HashToken: 137 case HashToken:
138 case UrlToken: 138 case UrlToken:
139 case VariableReferenceToken:
139 case BadUrlToken: 140 case BadUrlToken:
140 case PercentageToken: 141 case PercentageToken:
141 case IncludeMatchToken: 142 case IncludeMatchToken:
142 case DashMatchToken: 143 case DashMatchToken:
143 case PrefixMatchToken: 144 case PrefixMatchToken:
144 case SuffixMatchToken: 145 case SuffixMatchToken:
145 case SubstringMatchToken: 146 case SubstringMatchToken:
146 case ColumnToken: 147 case ColumnToken:
147 case UnicodeRangeToken: 148 case UnicodeRangeToken:
148 case IdentToken: 149 case IdentToken:
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 } 225 }
225 } 226 }
226 if (stack.size() == 1 && stack.last().isLength) { 227 if (stack.size() == 1 && stack.last().isLength) {
227 m_result = std::max(clampTo<float>(stack.last().value), (float)0.0); 228 m_result = std::max(clampTo<float>(stack.last().value), (float)0.0);
228 return true; 229 return true;
229 } 230 }
230 return false; 231 return false;
231 } 232 }
232 233
233 } // namespace blink 234 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698