OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2013 Google, Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "core/html/parser/HTMLToken.h" | 29 #include "core/html/parser/HTMLToken.h" |
30 #include "wtf/Allocator.h" | 30 #include "wtf/Allocator.h" |
31 #include "wtf/Vector.h" | 31 #include "wtf/Vector.h" |
32 #include "wtf/text/TextPosition.h" | 32 #include "wtf/text/TextPosition.h" |
33 #include "wtf/text/WTFString.h" | 33 #include "wtf/text/WTFString.h" |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 class QualifiedName; | 37 class QualifiedName; |
38 | 38 |
39 class CompactHTMLToken { | 39 class CORE_EXPORT CompactHTMLToken { |
40 ALLOW_ONLY_INLINE_ALLOCATION(); | 40 ALLOW_ONLY_INLINE_ALLOCATION(); |
41 public: | 41 public: |
42 struct Attribute { | 42 struct Attribute { |
43 ALLOW_ONLY_INLINE_ALLOCATION(); | 43 ALLOW_ONLY_INLINE_ALLOCATION(); |
44 Attribute(const String& name, const String& value) | 44 Attribute(const String& name, const String& value) |
45 : name(name) | 45 : name(name) |
46 , value(value) | 46 , value(value) |
47 { | 47 { |
48 } | 48 } |
49 | 49 |
(...skipping 28 matching lines...) Expand all Loading... |
78 String m_data; // "name", "characters", or "data" depending on m_type | 78 String m_data; // "name", "characters", or "data" depending on m_type |
79 Vector<Attribute> m_attributes; | 79 Vector<Attribute> m_attributes; |
80 TextPosition m_textPosition; | 80 TextPosition m_textPosition; |
81 }; | 81 }; |
82 | 82 |
83 typedef Vector<CompactHTMLToken> CompactHTMLTokenStream; | 83 typedef Vector<CompactHTMLToken> CompactHTMLTokenStream; |
84 | 84 |
85 } | 85 } |
86 | 86 |
87 #endif | 87 #endif |
OLD | NEW |