| 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 } | 336 } |
| 337 | 337 |
| 338 HTMLTreeBuilder::FragmentParsingContext::FragmentParsingContext() | 338 HTMLTreeBuilder::FragmentParsingContext::FragmentParsingContext() |
| 339 : m_fragment(0) | 339 : m_fragment(0) |
| 340 { | 340 { |
| 341 } | 341 } |
| 342 | 342 |
| 343 HTMLTreeBuilder::FragmentParsingContext::FragmentParsingContext(DocumentFragment
* fragment, Element* contextElement) | 343 HTMLTreeBuilder::FragmentParsingContext::FragmentParsingContext(DocumentFragment
* fragment, Element* contextElement) |
| 344 : m_fragment(fragment) | 344 : m_fragment(fragment) |
| 345 { | 345 { |
| 346 ASSERT(!fragment->hasChildNodes()); | 346 ASSERT(!fragment->hasChildren()); |
| 347 m_contextElementStackItem = HTMLStackItem::create(contextElement, HTMLStackI
tem::ItemForContextElement); | 347 m_contextElementStackItem = HTMLStackItem::create(contextElement, HTMLStackI
tem::ItemForContextElement); |
| 348 } | 348 } |
| 349 | 349 |
| 350 HTMLTreeBuilder::FragmentParsingContext::~FragmentParsingContext() | 350 HTMLTreeBuilder::FragmentParsingContext::~FragmentParsingContext() |
| 351 { | 351 { |
| 352 } | 352 } |
| 353 | 353 |
| 354 PassRefPtr<Element> HTMLTreeBuilder::takeScriptToProcess(TextPosition& scriptSta
rtPosition) | 354 PassRefPtr<Element> HTMLTreeBuilder::takeScriptToProcess(TextPosition& scriptSta
rtPosition) |
| 355 { | 355 { |
| 356 ASSERT(m_scriptToProcess); | 356 ASSERT(m_scriptToProcess); |
| (...skipping 2486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2843 ASSERT(m_isAttached); | 2843 ASSERT(m_isAttached); |
| 2844 // Warning, this may detach the parser. Do not do anything else after this. | 2844 // Warning, this may detach the parser. Do not do anything else after this. |
| 2845 m_tree.finishedParsing(); | 2845 m_tree.finishedParsing(); |
| 2846 } | 2846 } |
| 2847 | 2847 |
| 2848 void HTMLTreeBuilder::parseError(AtomicHTMLToken*) | 2848 void HTMLTreeBuilder::parseError(AtomicHTMLToken*) |
| 2849 { | 2849 { |
| 2850 } | 2850 } |
| 2851 | 2851 |
| 2852 } // namespace WebCore | 2852 } // namespace WebCore |
| OLD | NEW |