Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp

Issue 1820083005: Remove platform/NotImplemented.*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 30 matching lines...) Expand all
41 #include "core/html/HTMLPlugInElement.h" 41 #include "core/html/HTMLPlugInElement.h"
42 #include "core/html/HTMLScriptElement.h" 42 #include "core/html/HTMLScriptElement.h"
43 #include "core/html/HTMLTemplateElement.h" 43 #include "core/html/HTMLTemplateElement.h"
44 #include "core/html/parser/AtomicHTMLToken.h" 44 #include "core/html/parser/AtomicHTMLToken.h"
45 #include "core/html/parser/HTMLParserIdioms.h" 45 #include "core/html/parser/HTMLParserIdioms.h"
46 #include "core/html/parser/HTMLStackItem.h" 46 #include "core/html/parser/HTMLStackItem.h"
47 #include "core/html/parser/HTMLToken.h" 47 #include "core/html/parser/HTMLToken.h"
48 #include "core/loader/FrameLoader.h" 48 #include "core/loader/FrameLoader.h"
49 #include "core/loader/FrameLoaderClient.h" 49 #include "core/loader/FrameLoaderClient.h"
50 #include "core/svg/SVGScriptElement.h" 50 #include "core/svg/SVGScriptElement.h"
51 #include "platform/NotImplemented.h"
52 #include "platform/text/TextBreakIterator.h" 51 #include "platform/text/TextBreakIterator.h"
53 #include <limits> 52 #include <limits>
54 53
55 namespace blink { 54 namespace blink {
56 55
57 using namespace HTMLNames; 56 using namespace HTMLNames;
58 57
59 static const unsigned maximumHTMLParserDOMTreeDepth = 512; 58 static const unsigned maximumHTMLParserDOMTreeDepth = 512;
60 59
61 static inline void setAttributes(Element* element, AtomicHTMLToken* token, Parse rContentPolicy parserContentPolicy) 60 static inline void setAttributes(Element* element, AtomicHTMLToken* token, Parse rContentPolicy parserContentPolicy)
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 RefPtrWillBeRawPtr<HTMLScriptElement> element = HTMLScriptElement::create(ow nerDocumentForCurrentNode(), parserInserted, alreadyStarted); 657 RefPtrWillBeRawPtr<HTMLScriptElement> element = HTMLScriptElement::create(ow nerDocumentForCurrentNode(), parserInserted, alreadyStarted);
659 setAttributes(element.get(), token, m_parserContentPolicy); 658 setAttributes(element.get(), token, m_parserContentPolicy);
660 if (scriptingContentIsAllowed(m_parserContentPolicy)) 659 if (scriptingContentIsAllowed(m_parserContentPolicy))
661 attachLater(currentNode(), element); 660 attachLater(currentNode(), element);
662 m_openElements.push(HTMLStackItem::create(element.release(), token)); 661 m_openElements.push(HTMLStackItem::create(element.release(), token));
663 } 662 }
664 663
665 void HTMLConstructionSite::insertForeignElement(AtomicHTMLToken* token, const At omicString& namespaceURI) 664 void HTMLConstructionSite::insertForeignElement(AtomicHTMLToken* token, const At omicString& namespaceURI)
666 { 665 {
667 ASSERT(token->type() == HTMLToken::StartTag); 666 ASSERT(token->type() == HTMLToken::StartTag);
668 notImplemented(); // parseError when xmlns or xmlns:xlink are wrong. 667 NOTIMPLEMENTED(); // parseError when xmlns or xmlns:xlink are wrong.
669 668
670 RefPtrWillBeRawPtr<Element> element = createElement(token, namespaceURI); 669 RefPtrWillBeRawPtr<Element> element = createElement(token, namespaceURI);
671 if (scriptingContentIsAllowed(m_parserContentPolicy) || !toScriptLoaderIfPos sible(element.get())) 670 if (scriptingContentIsAllowed(m_parserContentPolicy) || !toScriptLoaderIfPos sible(element.get()))
672 attachLater(currentNode(), element, token->selfClosing()); 671 attachLater(currentNode(), element, token->selfClosing());
673 if (!token->selfClosing()) 672 if (!token->selfClosing())
674 m_openElements.push(HTMLStackItem::create(element.release(), token, name spaceURI)); 673 m_openElements.push(HTMLStackItem::create(element.release(), token, name spaceURI));
675 } 674 }
676 675
677 void HTMLConstructionSite::insertTextNode(const String& string, WhitespaceMode w hitespaceMode) 676 void HTMLConstructionSite::insertTextNode(const String& string, WhitespaceMode w hitespaceMode)
678 { 677 {
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 queueTask(task); 873 queueTask(task);
875 } 874 }
876 875
877 DEFINE_TRACE(HTMLConstructionSite::PendingText) 876 DEFINE_TRACE(HTMLConstructionSite::PendingText)
878 { 877 {
879 visitor->trace(parent); 878 visitor->trace(parent);
880 visitor->trace(nextChild); 879 visitor->trace(nextChild);
881 } 880 }
882 881
883 } // namespace blink 882 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698