| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 void parseError(AtomicHTMLToken*); | 188 void parseError(AtomicHTMLToken*); |
| 189 | 189 |
| 190 InsertionMode insertionMode() const { return m_insertionMode; } | 190 InsertionMode insertionMode() const { return m_insertionMode; } |
| 191 void setInsertionMode(InsertionMode mode) { m_insertionMode = mode; } | 191 void setInsertionMode(InsertionMode mode) { m_insertionMode = mode; } |
| 192 | 192 |
| 193 void resetInsertionModeAppropriately(); | 193 void resetInsertionModeAppropriately(); |
| 194 | 194 |
| 195 #if ENABLE(TEMPLATE_ELEMENT) | 195 #if ENABLE(TEMPLATE_ELEMENT) |
| 196 void processTemplateStartTag(AtomicHTMLToken*); | 196 void processTemplateStartTag(AtomicHTMLToken*); |
| 197 void processTemplateEndTag(AtomicHTMLToken*); | 197 void processTemplateEndTag(AtomicHTMLToken*); |
| 198 bool popAllTemplatesForEndOfFile(); |
| 198 #endif | 199 #endif |
| 199 | 200 |
| 200 class FragmentParsingContext { | 201 class FragmentParsingContext { |
| 201 WTF_MAKE_NONCOPYABLE(FragmentParsingContext); | 202 WTF_MAKE_NONCOPYABLE(FragmentParsingContext); |
| 202 public: | 203 public: |
| 203 FragmentParsingContext(); | 204 FragmentParsingContext(); |
| 204 FragmentParsingContext(DocumentFragment*, Element* contextElement, Fragm
entScriptingPermission); | 205 FragmentParsingContext(DocumentFragment*, Element* contextElement, Fragm
entScriptingPermission); |
| 205 ~FragmentParsingContext(); | 206 ~FragmentParsingContext(); |
| 206 | 207 |
| 207 DocumentFragment* fragment() const { return m_fragment; } | 208 DocumentFragment* fragment() const { return m_fragment; } |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 | 245 |
| 245 RefPtr<Element> m_scriptToProcess; // <script> tag which needs processing be
fore resuming the parser. | 246 RefPtr<Element> m_scriptToProcess; // <script> tag which needs processing be
fore resuming the parser. |
| 246 TextPosition m_scriptToProcessStartPosition; // Starting line number of the
script tag needing processing. | 247 TextPosition m_scriptToProcessStartPosition; // Starting line number of the
script tag needing processing. |
| 247 | 248 |
| 248 HTMLParserOptions m_options; | 249 HTMLParserOptions m_options; |
| 249 }; | 250 }; |
| 250 | 251 |
| 251 } | 252 } |
| 252 | 253 |
| 253 #endif | 254 #endif |
| OLD | NEW |