| OLD | NEW |
| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 OwnPtr<LChar[]> m_dataStart8; | 158 OwnPtr<LChar[]> m_dataStart8; |
| 159 OwnPtr<UChar[]> m_dataStart16; | 159 OwnPtr<UChar[]> m_dataStart16; |
| 160 LChar* m_currentCharacter8; | 160 LChar* m_currentCharacter8; |
| 161 UChar* m_currentCharacter16; | 161 UChar* m_currentCharacter16; |
| 162 | 162 |
| 163 // During parsing of an ASCII stylesheet we might locate escape | 163 // During parsing of an ASCII stylesheet we might locate escape |
| 164 // sequences that expand into UTF-16 code points. Strings, | 164 // sequences that expand into UTF-16 code points. Strings, |
| 165 // identifiers and URIs containing such escape sequences are | 165 // identifiers and URIs containing such escape sequences are |
| 166 // stored in m_cssStrings16 so that we don't have to store the | 166 // stored in m_cssStrings16 so that we don't have to store the |
| 167 // whole stylesheet as UTF-16. | 167 // whole stylesheet as UTF-16. |
| 168 Vector<OwnPtr<UChar[]> > m_cssStrings16; | 168 Vector<OwnPtr<UChar[]>> m_cssStrings16; |
| 169 union { | 169 union { |
| 170 LChar* ptr8; | 170 LChar* ptr8; |
| 171 UChar* ptr16; | 171 UChar* ptr16; |
| 172 } m_tokenStart; | 172 } m_tokenStart; |
| 173 unsigned m_length; | 173 unsigned m_length; |
| 174 int m_token; | 174 int m_token; |
| 175 int m_lineNumber; | 175 int m_lineNumber; |
| 176 int m_tokenStartLineNumber; | 176 int m_tokenStartLineNumber; |
| 177 | 177 |
| 178 // FIXME: This boolean is misnamed. Also it would be nice if we could consol
idate it | 178 // FIXME: This boolean is misnamed. Also it would be nice if we could consol
idate it |
| (...skipping 18 matching lines...) Expand all Loading... |
| 197 | 197 |
| 198 template <> | 198 template <> |
| 199 inline UChar* BisonCSSTokenizer::tokenStart<UChar>() | 199 inline UChar* BisonCSSTokenizer::tokenStart<UChar>() |
| 200 { | 200 { |
| 201 return m_tokenStart.ptr16; | 201 return m_tokenStart.ptr16; |
| 202 } | 202 } |
| 203 | 203 |
| 204 } // namespace blink | 204 } // namespace blink |
| 205 | 205 |
| 206 #endif // BisonCSSTokenizer_h | 206 #endif // BisonCSSTokenizer_h |
| OLD | NEW |