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

Unified Diff: sky/engine/core/editing/markup.cpp

Issue 665613003: Remove the ability to parse HTML fragments (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: sky/engine/core/editing/markup.cpp
diff --git a/sky/engine/core/editing/markup.cpp b/sky/engine/core/editing/markup.cpp
index 74a2d63878ddf3f6bc6aa0a9f85a45bd4e12fe70..f87363da07913e89d8656d4c6e3c04ce9e47805f 100644
--- a/sky/engine/core/editing/markup.cpp
+++ b/sky/engine/core/editing/markup.cpp
@@ -529,13 +529,6 @@ String createMarkup(const Range* range, WillBeHeapVector<RawPtrWillBeMember<Node
return createMarkupInternal(document, range, updatedRange, nodes, shouldAnnotate, convertBlocksToInlines, shouldResolveURLs, constrainingAncestor);
}
-PassRefPtrWillBeRawPtr<DocumentFragment> createFragmentFromMarkup(Document& document, const String& markup)
-{
- RefPtrWillBeRawPtr<DocumentFragment> fragment = DocumentFragment::create(document);
- fragment->parseHTML(markup, nullptr);
- return fragment.release();
-}
-
String createMarkup(const Node* node, EChildrenOnly childrenOnly, WillBeHeapVector<RawPtrWillBeMember<Node> >* nodes, EAbsoluteURLs shouldResolveURLs, Vector<QualifiedName>* tagNamesToSkip)
{
if (!node)
@@ -545,15 +538,6 @@ String createMarkup(const Node* node, EChildrenOnly childrenOnly, WillBeHeapVect
return accumulator.serializeNodes(const_cast<Node&>(*node), childrenOnly, tagNamesToSkip);
}
-PassRefPtrWillBeRawPtr<DocumentFragment> createFragmentForInnerOuterHTML(const String& markup, Element* contextElement, const char* method, ExceptionState& exceptionState)
-{
- ASSERT(contextElement);
- Document& document = isHTMLTemplateElement(*contextElement) ? contextElement->document().ensureTemplateDocument() : contextElement->document();
- RefPtrWillBeRawPtr<DocumentFragment> fragment = DocumentFragment::create(document);
- fragment->parseHTML(markup, contextElement);
- return fragment;
-}
-
void replaceChildrenWithFragment(ContainerNode* container, PassRefPtrWillBeRawPtr<DocumentFragment> fragment, ExceptionState& exceptionState)
{
ASSERT(container);

Powered by Google App Engine
This is Rietveld 408576698