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

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: 2013-08-27T11:16:22 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..5faaf9c472e30c318dd33c4d427c774a2b9304b5 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* methodName) const;
void checkDeleteExtract(ExceptionState&);
int maxStartOffset() const;
int maxEndOffset() const;
« no previous file with comments | « LayoutTests/fast/dom/Range/surroundContents-for-detached-node-expected.txt ('k') | Source/core/dom/Range.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698