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

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

Issue 115693010: Fix Range.createContextualFragment for non-Element contexts. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Minor cleanup, more testing. Created 7 years 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: Source/core/editing/markup.h
diff --git a/Source/core/editing/markup.h b/Source/core/editing/markup.h
index f12209269e962e80241afcd717c78585f55ec7fe..a7ec1be53844ffa2f23f2a35de2da355950d030d 100644
--- a/Source/core/editing/markup.h
+++ b/Source/core/editing/markup.h
@@ -43,6 +43,7 @@ class KURL;
class Node;
class QualifiedName;
class Range;
+class SVGElement;
enum EChildrenOnly { IncludeNode, ChildrenOnly };
enum EAbsoluteURLs { DoNotResolveURLs, ResolveAllURLs, ResolveNonLocalURLs };
@@ -54,6 +55,7 @@ PassRefPtr<DocumentFragment> createFragmentFromNodes(Document*, const Vector<Nod
PassRefPtr<DocumentFragment> createFragmentForInnerOuterHTML(const String&, Element*, ParserContentPolicy, const char* method, ExceptionState&);
PassRefPtr<DocumentFragment> createFragmentForTransformToFragment(const String&, const String& sourceMIMEType, Document& outputDoc);
PassRefPtr<DocumentFragment> createContextualFragment(const String&, HTMLElement*, ParserContentPolicy, ExceptionState&);
+PassRefPtr<DocumentFragment> createContextualFragment(const String&, SVGElement*, ParserContentPolicy, ExceptionState&);
eseidel 2014/04/10 04:28:51 Why is SVG special? Can we just have one for Elem
pwnall-personal 2014/06/02 06:57:57 Done. Thank you!
bool isPlainTextMarkup(Node*);

Powered by Google App Engine
This is Rietveld 408576698