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 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 */ | 19 */ |
20 | 20 |
21 #ifndef CSSParserString_h | 21 #ifndef CSSParserString_h |
22 #define CSSParserString_h | 22 #define CSSParserString_h |
23 | 23 |
| 24 #include "wtf/Allocator.h" |
24 #include "wtf/text/AtomicString.h" | 25 #include "wtf/text/AtomicString.h" |
25 #include "wtf/text/WTFString.h" | 26 #include "wtf/text/WTFString.h" |
26 | 27 |
27 namespace blink { | 28 namespace blink { |
28 | 29 |
29 struct CSSParserString { | 30 struct CSSParserString { |
| 31 STACK_ALLOCATED(); |
30 void init(const LChar* characters, unsigned length) | 32 void init(const LChar* characters, unsigned length) |
31 { | 33 { |
32 m_data.characters8 = characters; | 34 m_data.characters8 = characters; |
33 m_length = length; | 35 m_length = length; |
34 m_is8Bit = true; | 36 m_is8Bit = true; |
35 } | 37 } |
36 | 38 |
37 void init(const UChar* characters, unsigned length) | 39 void init(const UChar* characters, unsigned length) |
38 { | 40 { |
39 m_data.characters16 = characters; | 41 m_data.characters16 = characters; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 const UChar* characters16; | 98 const UChar* characters16; |
97 const void* charactersRaw; | 99 const void* charactersRaw; |
98 } m_data; | 100 } m_data; |
99 unsigned m_length; | 101 unsigned m_length; |
100 bool m_is8Bit; | 102 bool m_is8Bit; |
101 }; | 103 }; |
102 | 104 |
103 } | 105 } |
104 | 106 |
105 #endif | 107 #endif |
OLD | NEW |