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

Side by Side Diff: sky/engine/core/css/parser/SizesCalcParser.cpp

Issue 746023002: Make absolute and sort all Sky headers (Closed) Base URL: git@github.com:domokit/mojo.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 // 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 "sky/engine/config.h"
6 #include "core/css/parser/SizesCalcParser.h" 6 #include "sky/engine/core/css/parser/SizesCalcParser.h"
7 7
8 #include "core/css/MediaValues.h" 8 #include "sky/engine/core/css/MediaValues.h"
9 #include "core/css/parser/MediaQueryToken.h" 9 #include "sky/engine/core/css/parser/MediaQueryToken.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 SizesCalcParser::SizesCalcParser(MediaQueryTokenIterator start, MediaQueryTokenI terator end, PassRefPtr<MediaValues> mediaValues) 13 SizesCalcParser::SizesCalcParser(MediaQueryTokenIterator start, MediaQueryTokenI terator end, PassRefPtr<MediaValues> mediaValues)
14 : m_mediaValues(mediaValues) 14 : m_mediaValues(mediaValues)
15 , m_viewportDependant(false) 15 , m_viewportDependant(false)
16 , m_result(0) 16 , m_result(0)
17 { 17 {
18 m_isValid = calcToReversePolishNotation(start, end) && calculate(); 18 m_isValid = calcToReversePolishNotation(start, end) && calculate();
19 } 19 }
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 } 212 }
213 } 213 }
214 if (stack.size() == 1 && stack.last().isLength) { 214 if (stack.size() == 1 && stack.last().isLength) {
215 m_result = clampTo<unsigned>(stack.last().value); 215 m_result = clampTo<unsigned>(stack.last().value);
216 return true; 216 return true;
217 } 217 }
218 return false; 218 return false;
219 } 219 }
220 220
221 } // namespace blink 221 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/css/parser/SizesCalcParser.h ('k') | sky/engine/core/css/parser/SizesCalcParserTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698