| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 void setInsertionMode(InsertionMode mode) { m_insertionMode = mode; } | 183 void setInsertionMode(InsertionMode mode) { m_insertionMode = mode; } |
| 184 | 184 |
| 185 void resetInsertionModeAppropriately(); | 185 void resetInsertionModeAppropriately(); |
| 186 | 186 |
| 187 void processTemplateStartTag(AtomicHTMLToken*); | 187 void processTemplateStartTag(AtomicHTMLToken*); |
| 188 bool processTemplateEndTag(AtomicHTMLToken*); | 188 bool processTemplateEndTag(AtomicHTMLToken*); |
| 189 bool processEndOfFileForInTemplateContents(AtomicHTMLToken*); | 189 bool processEndOfFileForInTemplateContents(AtomicHTMLToken*); |
| 190 | 190 |
| 191 class FragmentParsingContext { | 191 class FragmentParsingContext { |
| 192 WTF_MAKE_NONCOPYABLE(FragmentParsingContext); | 192 WTF_MAKE_NONCOPYABLE(FragmentParsingContext); |
| 193 DISALLOW_ALLOCATION(); | 193 DISALLOW_NEW(); |
| 194 public: | 194 public: |
| 195 FragmentParsingContext(); | 195 FragmentParsingContext(); |
| 196 FragmentParsingContext(DocumentFragment*, Element* contextElement); | 196 FragmentParsingContext(DocumentFragment*, Element* contextElement); |
| 197 ~FragmentParsingContext(); | 197 ~FragmentParsingContext(); |
| 198 | 198 |
| 199 DocumentFragment* fragment() const { return m_fragment; } | 199 DocumentFragment* fragment() const { return m_fragment; } |
| 200 Element* contextElement() const { ASSERT(m_fragment); return m_contextEl
ementStackItem->element(); } | 200 Element* contextElement() const { ASSERT(m_fragment); return m_contextEl
ementStackItem->element(); } |
| 201 HTMLStackItem* contextElementStackItem() const { ASSERT(m_fragment); ret
urn m_contextElementStackItem.get(); } | 201 HTMLStackItem* contextElementStackItem() const { ASSERT(m_fragment); ret
urn m_contextElementStackItem.get(); } |
| 202 | 202 |
| 203 DECLARE_TRACE(); | 203 DECLARE_TRACE(); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 234 | 234 |
| 235 RefPtrWillBeMember<Element> m_scriptToProcess; // <script> tag which needs p
rocessing before resuming the parser. | 235 RefPtrWillBeMember<Element> m_scriptToProcess; // <script> tag which needs p
rocessing before resuming the parser. |
| 236 TextPosition m_scriptToProcessStartPosition; // Starting line number of the
script tag needing processing. | 236 TextPosition m_scriptToProcessStartPosition; // Starting line number of the
script tag needing processing. |
| 237 | 237 |
| 238 HTMLParserOptions m_options; | 238 HTMLParserOptions m_options; |
| 239 }; | 239 }; |
| 240 | 240 |
| 241 } | 241 } |
| 242 | 242 |
| 243 #endif | 243 #endif |
| OLD | NEW |