| 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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 RefPtrWillBeRawPtr<HTMLScriptElement> element = HTMLScriptElement::create(ow
nerDocumentForCurrentNode(), parserInserted, alreadyStarted); | 658 RefPtrWillBeRawPtr<HTMLScriptElement> element = HTMLScriptElement::create(ow
nerDocumentForCurrentNode(), parserInserted, alreadyStarted); |
| 659 setAttributes(element.get(), token, m_parserContentPolicy); | 659 setAttributes(element.get(), token, m_parserContentPolicy); |
| 660 if (scriptingContentIsAllowed(m_parserContentPolicy)) | 660 if (scriptingContentIsAllowed(m_parserContentPolicy)) |
| 661 attachLater(currentNode(), element); | 661 attachLater(currentNode(), element); |
| 662 m_openElements.push(HTMLStackItem::create(element.release(), token)); | 662 m_openElements.push(HTMLStackItem::create(element.release(), token)); |
| 663 } | 663 } |
| 664 | 664 |
| 665 void HTMLConstructionSite::insertForeignElement(AtomicHTMLToken* token, const At
omicString& namespaceURI) | 665 void HTMLConstructionSite::insertForeignElement(AtomicHTMLToken* token, const At
omicString& namespaceURI) |
| 666 { | 666 { |
| 667 ASSERT(token->type() == HTMLToken::StartTag); | 667 ASSERT(token->type() == HTMLToken::StartTag); |
| 668 notImplemented(); // parseError when xmlns or xmlns:xlink are wrong. | 668 DVLOG(1) << "Not implemented."; // parseError when xmlns or xmlns:xlink are
wrong. |
| 669 | 669 |
| 670 RefPtrWillBeRawPtr<Element> element = createElement(token, namespaceURI); | 670 RefPtrWillBeRawPtr<Element> element = createElement(token, namespaceURI); |
| 671 if (scriptingContentIsAllowed(m_parserContentPolicy) || !toScriptLoaderIfPos
sible(element.get())) | 671 if (scriptingContentIsAllowed(m_parserContentPolicy) || !toScriptLoaderIfPos
sible(element.get())) |
| 672 attachLater(currentNode(), element, token->selfClosing()); | 672 attachLater(currentNode(), element, token->selfClosing()); |
| 673 if (!token->selfClosing()) | 673 if (!token->selfClosing()) |
| 674 m_openElements.push(HTMLStackItem::create(element.release(), token, name
spaceURI)); | 674 m_openElements.push(HTMLStackItem::create(element.release(), token, name
spaceURI)); |
| 675 } | 675 } |
| 676 | 676 |
| 677 void HTMLConstructionSite::insertTextNode(const String& string, WhitespaceMode w
hitespaceMode) | 677 void HTMLConstructionSite::insertTextNode(const String& string, WhitespaceMode w
hitespaceMode) |
| 678 { | 678 { |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 874 queueTask(task); | 874 queueTask(task); |
| 875 } | 875 } |
| 876 | 876 |
| 877 DEFINE_TRACE(HTMLConstructionSite::PendingText) | 877 DEFINE_TRACE(HTMLConstructionSite::PendingText) |
| 878 { | 878 { |
| 879 visitor->trace(parent); | 879 visitor->trace(parent); |
| 880 visitor->trace(nextChild); | 880 visitor->trace(nextChild); |
| 881 } | 881 } |
| 882 | 882 |
| 883 } // namespace blink | 883 } // namespace blink |
| OLD | NEW |