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: Source/core/dom/Text.h

Issue 23467007: Have Range constructor take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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: Source/core/dom/Text.h
diff --git a/Source/core/dom/Text.h b/Source/core/dom/Text.h
index 33a459a61b93408c67c0b11db54bfffc13807c46..3cf2b52f239d4dd011365c4db33acd1bd59f20ef 100644
--- a/Source/core/dom/Text.h
+++ b/Source/core/dom/Text.h
@@ -35,6 +35,11 @@ class Text : public CharacterData {
public:
static const unsigned defaultLengthLimit = 1 << 16;
+ static PassRefPtr<Text> create(Document& document, const String& data)
+ {
+ return create(&document, data);
+ }
+
static PassRefPtr<Text> create(Document*, const String&);
static PassRefPtr<Text> createWithLengthLimit(Document*, const String&, unsigned positionInString, unsigned lengthLimit = defaultLengthLimit);
static PassRefPtr<Text> createEditingText(Document*, const String&);

Powered by Google App Engine
This is Rietveld 408576698