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

Side by Side Diff: sky/engine/core/css/parser/CSSTokenizer.h

Issue 807703003: Remove @media rules. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « sky/engine/core/css/parser/CSSGrammar.y ('k') | sky/engine/core/css/parser/CSSTokenizer-in.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserve d. 5 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserve d.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 template <typename SrcCharacterType, typename DestCharacterType> 117 template <typename SrcCharacterType, typename DestCharacterType>
118 static inline bool parseURIInternal(SrcCharacterType*&, DestCharacterType*&, UChar quote); 118 static inline bool parseURIInternal(SrcCharacterType*&, DestCharacterType*&, UChar quote);
119 template <typename CharacterType> 119 template <typename CharacterType>
120 inline void parseURI(CSSParserString&); 120 inline void parseURI(CSSParserString&);
121 121
122 template <typename CharacterType> 122 template <typename CharacterType>
123 inline bool parseUnicodeRange(); 123 inline bool parseUnicodeRange();
124 template <typename CharacterType> 124 template <typename CharacterType>
125 inline bool detectFunctionTypeToken(int); 125 inline bool detectFunctionTypeToken(int);
126 template <typename CharacterType> 126 template <typename CharacterType>
127 inline void detectMediaQueryToken(int);
128 template <typename CharacterType>
129 inline void detectNumberToken(CharacterType*, int); 127 inline void detectNumberToken(CharacterType*, int);
130 template <typename CharacterType> 128 template <typename CharacterType>
131 inline void detectDashToken(int); 129 inline void detectDashToken(int);
132 template <typename CharacterType> 130 template <typename CharacterType>
133 inline void detectAtToken(int, bool); 131 inline void detectAtToken(int, bool);
134 template <typename CharacterType> 132 template <typename CharacterType>
135 inline void detectSupportsToken(int); 133 inline void detectSupportsToken(int);
136 134
137 template <typename SourceCharacterType> 135 template <typename SourceCharacterType>
138 int realLex(void* yylval); 136 int realLex(void* yylval);
139 137
140 BisonCSSParser& m_parser; 138 BisonCSSParser& m_parser;
141 139
142 size_t m_parsedTextPrefixLength; 140 size_t m_parsedTextPrefixLength;
143 size_t m_parsedTextSuffixLength; 141 size_t m_parsedTextSuffixLength;
144 142
145 enum ParsingMode { 143 enum ParsingMode {
146 NormalMode, 144 NormalMode,
147 MediaQueryMode,
148 SupportsMode, 145 SupportsMode,
149 }; 146 };
150 147
151 ParsingMode m_parsingMode; 148 ParsingMode m_parsingMode;
152 bool m_is8BitSource; 149 bool m_is8BitSource;
153 OwnPtr<LChar[]> m_dataStart8; 150 OwnPtr<LChar[]> m_dataStart8;
154 OwnPtr<UChar[]> m_dataStart16; 151 OwnPtr<UChar[]> m_dataStart16;
155 LChar* m_currentCharacter8; 152 LChar* m_currentCharacter8;
156 UChar* m_currentCharacter16; 153 UChar* m_currentCharacter16;
157 154
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 189
193 template <> 190 template <>
194 inline UChar* CSSTokenizer::tokenStart<UChar>() 191 inline UChar* CSSTokenizer::tokenStart<UChar>()
195 { 192 {
196 return m_tokenStart.ptr16; 193 return m_tokenStart.ptr16;
197 } 194 }
198 195
199 } // namespace blink 196 } // namespace blink
200 197
201 #endif // SKY_ENGINE_CORE_CSS_PARSER_CSSTOKENIZER_H_ 198 #endif // SKY_ENGINE_CORE_CSS_PARSER_CSSTOKENIZER_H_
OLDNEW
« no previous file with comments | « sky/engine/core/css/parser/CSSGrammar.y ('k') | sky/engine/core/css/parser/CSSTokenizer-in.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698