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

Unified Diff: Source/core/dom/Range.h

Issue 23404003: Make Range methods to work with detached node (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/Range.h
diff --git a/Source/core/dom/Range.h b/Source/core/dom/Range.h
index 0de0a15d67b2050f6859dc25582eda027afa41a3..665d57d811b653768b579aee3ce662239542eb5f 100644
--- a/Source/core/dom/Range.h
+++ b/Source/core/dom/Range.h
@@ -101,7 +101,7 @@ public:
void selectNode(Node*, ExceptionState& = ASSERT_NO_EXCEPTION);
void selectNodeContents(Node*, ExceptionState&);
void surroundContents(PassRefPtr<Node>, ExceptionState&);
- void setStartBefore(Node*, ExceptionState&);
+ void setStartBefore(Node*, ExceptionState& = ASSERT_NO_EXCEPTION);
const Position startPosition() const { return m_start.toPosition(); }
const Position endPosition() const { return m_end.toPosition(); }
@@ -156,7 +156,7 @@ private:
void setDocument(Document*);
Node* checkNodeWOffset(Node*, int offset, ExceptionState&) const;
- void checkNodeBA(Node*, ExceptionState&) const;
+ void checkNodeBA(Node*, ExceptionState&, const char*) const;
tkent 2013/08/26 22:37:41 It's hard to imagine what the "const char*" argume
yosin_UTC9 2013/08/27 02:18:55 Done.
void checkDeleteExtract(ExceptionState&);
int maxStartOffset() const;
int maxEndOffset() const;

Powered by Google App Engine
This is Rietveld 408576698