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

Unified Diff: third_party/WebKit/Source/core/editing/serializers/Serialization.cpp

Issue 1860293003: Serialize original node when dragging a link instead of synthesizing HTML. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: delete delete Created 4 years, 8 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: third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
diff --git a/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp b/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
index 3d3bd0fd520ea4a64e3de8ba6266665b9e784d06..6806415ea89336f211ce437dcb615dc20f3c5059 100644
--- a/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
+++ b/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
@@ -513,17 +513,6 @@ RawPtr<DocumentFragment> createFragmentFromText(const EphemeralRange& context, c
return fragment.release();
}
-String urlToMarkup(const KURL& url, const String& title)
-{
- StringBuilder markup;
- markup.appendLiteral("<a href=\"");
- markup.append(url.getString());
- markup.appendLiteral("\">");
- MarkupFormatter::appendCharactersReplacingEntities(markup, title, 0, title.length(), EntityMaskInPCDATA);
- markup.appendLiteral("</a>");
- return markup.toString();
-}
-
RawPtr<DocumentFragment> createFragmentForInnerOuterHTML(const String& markup, Element* contextElement, ParserContentPolicy parserContentPolicy, const char* method, ExceptionState& exceptionState)
{
ASSERT(contextElement);

Powered by Google App Engine
This is Rietveld 408576698