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

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

Issue 2804943002: Avoid duplicate functions/code in core/editing: endTag (Closed)
Patch Set: Created 3 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/MarkupAccumulator.cpp
diff --git a/third_party/WebKit/Source/core/editing/serializers/MarkupAccumulator.cpp b/third_party/WebKit/Source/core/editing/serializers/MarkupAccumulator.cpp
index bb9b4a5b791d1ac82a53363ce9d1ac4d5b3e6e7e..74c4706af1e22c07747fff87c98b74f103974000 100644
--- a/third_party/WebKit/Source/core/editing/serializers/MarkupAccumulator.cpp
+++ b/third_party/WebKit/Source/core/editing/serializers/MarkupAccumulator.cpp
@@ -37,6 +37,7 @@
#include "core/dom/DocumentFragment.h"
#include "core/dom/DocumentType.h"
#include "core/dom/ProcessingInstruction.h"
+#include "core/editing/EditingUtilities.h"
#include "core/editing/Editor.h"
#include "core/html/HTMLElement.h"
#include "core/html/HTMLTemplateElement.h"
@@ -84,13 +85,6 @@ void MarkupAccumulator::appendStartMarkup(StringBuilder& result,
}
}
-static bool elementCannotHaveEndTag(const Node& node) {
- if (!node.isHTMLElement())
- return false;
-
- return !toHTMLElement(node).shouldSerializeEndTag();
-}
-
void MarkupAccumulator::appendEndMarkup(StringBuilder& result,
const Element& element) {
m_formatter.appendEndMarkup(result, element);

Powered by Google App Engine
This is Rietveld 408576698