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

Unified Diff: Source/web/WebRange.cpp

Issue 252783002: Make Range.detach() a no-op (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 8 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/web/TextFinder.cpp ('k') | Source/web/mac/WebSubstringUtil.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebRange.cpp
diff --git a/Source/web/WebRange.cpp b/Source/web/WebRange.cpp
index 80cf7b43b18669b2c8efd2eb4e87ce8fe7f987dd..c43eed396c1bdfd670445cd10284eb40a5e7cdad 100644
--- a/Source/web/WebRange.cpp
+++ b/Source/web/WebRange.cpp
@@ -75,18 +75,16 @@ int WebRange::endOffset() const
WebNode WebRange::startContainer(WebExceptionCode& exceptionCode) const
{
// FIXME: Create a wrapper class that just sets the internal int.
- TrackExceptionState exceptionState;
- RefPtr<Node> node(m_private->startContainer(exceptionState));
- exceptionCode = exceptionState.code();
+ RefPtr<Node> node(m_private->startContainer());
+ exceptionCode = 0;
return node.release();
}
WebNode WebRange::endContainer(WebExceptionCode& exceptionCode) const
{
// FIXME: Create a wrapper class that just sets the internal int.
- TrackExceptionState exceptionState;
- RefPtr<Node> node(m_private->endContainer(exceptionState));
- exceptionCode = exceptionState.code();
+ RefPtr<Node> node(m_private->endContainer());
+ exceptionCode = 0;
return node.release();
}
« no previous file with comments | « Source/web/TextFinder.cpp ('k') | Source/web/mac/WebSubstringUtil.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698