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

Unified Diff: Source/core/editing/markup.h

Issue 1187273003: Introduce createMarkup function takes two positions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-06-18T09:58:34 Created 5 years, 6 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
« no previous file with comments | « Source/core/editing/StyledMarkupSerializerTest.cpp ('k') | Source/core/editing/markup.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/markup.h
diff --git a/Source/core/editing/markup.h b/Source/core/editing/markup.h
index 7bf995be73127cf229f3a410605c095cc9194659..956b21fb1905517b1f5e979e31b10aff49a09a44 100644
--- a/Source/core/editing/markup.h
+++ b/Source/core/editing/markup.h
@@ -64,19 +64,11 @@ bool isPlainTextMarkup(Node*);
void replaceChildrenWithFragment(ContainerNode*, PassRefPtrWillBeRawPtr<DocumentFragment>, ExceptionState&);
void replaceChildrenWithText(ContainerNode*, const String&, ExceptionState&);
-template <typename Strategy>
-class CORE_TEMPLATE_CLASS_EXPORT CreateMarkupAlgorithm {
-public:
- using PositionType = typename Strategy::PositionType;
-
- static String createMarkup(const PositionType& startPosition, const PositionType& endPosition, EAnnotateForInterchange shouldAnnotate = DoNotAnnotateForInterchange, ConvertBlocksToInlines = ConvertBlocksToInlines::NotConvert, EAbsoluteURLs shouldResolveURLs = DoNotResolveURLs, Node* constrainingAncestor = nullptr);
-};
-
-extern template class CORE_EXTERN_TEMPLATE_EXPORT CreateMarkupAlgorithm<EditingStrategy>;
-
CORE_EXPORT String createMarkup(const Range*, EAnnotateForInterchange = DoNotAnnotateForInterchange, ConvertBlocksToInlines = ConvertBlocksToInlines::NotConvert, EAbsoluteURLs = DoNotResolveURLs, Node* constrainingAncestor = nullptr);
CORE_EXPORT String createMarkup(const Node*, EChildrenOnly = IncludeNode, EAbsoluteURLs = DoNotResolveURLs);
+CORE_EXPORT String createMarkup(const Position& start, const Position& end, EAnnotateForInterchange = DoNotAnnotateForInterchange, ConvertBlocksToInlines = ConvertBlocksToInlines::NotConvert, EAbsoluteURLs = DoNotResolveURLs, Node* constrainingAncestor = nullptr);
+
String urlToMarkup(const KURL&, const String& title);
void mergeWithNextTextNode(Text*, ExceptionState&);
« no previous file with comments | « Source/core/editing/StyledMarkupSerializerTest.cpp ('k') | Source/core/editing/markup.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698