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

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

Issue 1215103007: Remove remaining HTML elements (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 // 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 "sky/engine/core/css/parser/MediaQueryInputStream.h" 5 #include "sky/engine/core/css/parser/MediaQueryInputStream.h"
6 6
7 #include "sky/engine/core/html/parser/InputStreamPreprocessor.h"
8
9 namespace blink { 7 namespace blink {
10 8
11 MediaQueryInputStream::MediaQueryInputStream(String input) 9 MediaQueryInputStream::MediaQueryInputStream(String input)
12 : m_offset(0) 10 : m_offset(0)
13 , m_string(input) 11 , m_string(input)
14 { 12 {
15 } 13 }
16 14
17 UChar MediaQueryInputStream::peek(unsigned lookaheadOffset) 15 UChar MediaQueryInputStream::peek(unsigned lookaheadOffset)
18 { 16 {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 if (start < end) { 54 if (start < end) {
57 if (m_string.is8Bit()) 55 if (m_string.is8Bit())
58 result = charactersToDouble(m_string.characters8() + m_offset + star t, end - start, &isResultOK); 56 result = charactersToDouble(m_string.characters8() + m_offset + star t, end - start, &isResultOK);
59 else 57 else
60 result = charactersToDouble(m_string.characters16() + m_offset + sta rt, end - start, &isResultOK); 58 result = charactersToDouble(m_string.characters16() + m_offset + sta rt, end - start, &isResultOK);
61 } 59 }
62 return isResultOK ? result : 0.0; 60 return isResultOK ? result : 0.0;
63 } 61 }
64 62
65 } // namespace blink 63 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/css/parser/MediaQueryInputStream.h ('k') | sky/engine/core/css/parser/MediaQueryTokenizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698