OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. |
3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "core/html/parser/HTMLStackItem.h" | 30 #include "core/html/parser/HTMLStackItem.h" |
31 #include "wtf/Forward.h" | 31 #include "wtf/Forward.h" |
32 #include "wtf/Noncopyable.h" | 32 #include "wtf/Noncopyable.h" |
33 #include "wtf/OwnPtr.h" | 33 #include "wtf/OwnPtr.h" |
34 #include "wtf/PassOwnPtr.h" | 34 #include "wtf/PassOwnPtr.h" |
35 #include "wtf/RefPtr.h" | 35 #include "wtf/RefPtr.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class ContainerNode; | 39 class ContainerNode; |
40 class DocumentFragment; | |
41 class Element; | 40 class Element; |
42 class QualifiedName; | 41 class QualifiedName; |
43 | 42 |
44 // NOTE: The HTML5 spec uses a backwards (grows downward) stack. We're using | 43 // NOTE: The HTML5 spec uses a backwards (grows downward) stack. We're using |
45 // more standard (grows upwards) stack terminology here. | 44 // more standard (grows upwards) stack terminology here. |
46 class HTMLElementStack { | 45 class HTMLElementStack { |
47 WTF_MAKE_NONCOPYABLE(HTMLElementStack); | 46 WTF_MAKE_NONCOPYABLE(HTMLElementStack); |
48 DISALLOW_ALLOCATION(); | 47 DISALLOW_ALLOCATION(); |
49 public: | 48 public: |
50 HTMLElementStack(); | 49 HTMLElementStack(); |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 // way down through createElement, etc. | 184 // way down through createElement, etc. |
186 RawPtrWillBeMember<ContainerNode> m_rootNode; | 185 RawPtrWillBeMember<ContainerNode> m_rootNode; |
187 RawPtrWillBeMember<Element> m_headElement; | 186 RawPtrWillBeMember<Element> m_headElement; |
188 RawPtrWillBeMember<Element> m_bodyElement; | 187 RawPtrWillBeMember<Element> m_bodyElement; |
189 unsigned m_stackDepth; | 188 unsigned m_stackDepth; |
190 }; | 189 }; |
191 | 190 |
192 } // namespace blink | 191 } // namespace blink |
193 | 192 |
194 #endif // HTMLElementStack_h | 193 #endif // HTMLElementStack_h |
OLD | NEW |