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

Unified Diff: Source/core/html/HTMLTextFormControlElement.cpp

Issue 22417002: Rename ASSERT_NO_EXCEPTION_STATE and IGNORE_EXCEPTION_STATE (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
« no previous file with comments | « Source/core/html/HTMLTextAreaElement.cpp ('k') | Source/core/html/HTMLTitleElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLTextFormControlElement.cpp
diff --git a/Source/core/html/HTMLTextFormControlElement.cpp b/Source/core/html/HTMLTextFormControlElement.cpp
index 138f8dd173812d265e01b6b3fa0a559f26de6304..3a86925be90fa0fab88b926d9bb30a5a111510cb 100644
--- a/Source/core/html/HTMLTextFormControlElement.cpp
+++ b/Source/core/html/HTMLTextFormControlElement.cpp
@@ -331,7 +331,7 @@ VisiblePosition HTMLTextFormControlElement::visiblePositionForIndex(int index) c
if (index <= 0)
return VisiblePosition(firstPositionInNode(innerTextElement()), DOWNSTREAM);
RefPtr<Range> range = Range::create(document());
- range->selectNodeContents(innerTextElement(), ASSERT_NO_EXCEPTION_STATE);
+ range->selectNodeContents(innerTextElement(), ASSERT_NO_EXCEPTION);
CharacterIterator it(range.get());
it.advance(index - 1);
return VisiblePosition(it.range()->endPosition(), UPSTREAM);
@@ -343,8 +343,8 @@ int HTMLTextFormControlElement::indexForVisiblePosition(const VisiblePosition& p
if (enclosingTextFormControl(indexPosition) != this)
return 0;
RefPtr<Range> range = Range::create(indexPosition.document());
- range->setStart(innerTextElement(), 0, ASSERT_NO_EXCEPTION_STATE);
- range->setEnd(indexPosition.containerNode(), indexPosition.offsetInContainerNode(), ASSERT_NO_EXCEPTION_STATE);
+ range->setStart(innerTextElement(), 0, ASSERT_NO_EXCEPTION);
+ range->setEnd(indexPosition.containerNode(), indexPosition.offsetInContainerNode(), ASSERT_NO_EXCEPTION);
return TextIterator::rangeLength(range.get());
}
@@ -525,10 +525,10 @@ void HTMLTextFormControlElement::setInnerTextValue(const String& value)
if (AXObjectCache* cache = document()->existingAXObjectCache())
cache->postNotification(this, AXObjectCache::AXValueChanged, false);
}
- innerTextElement()->setInnerText(value, ASSERT_NO_EXCEPTION_STATE);
+ innerTextElement()->setInnerText(value, ASSERT_NO_EXCEPTION);
if (value.endsWith('\n') || value.endsWith('\r'))
- innerTextElement()->appendChild(HTMLBRElement::create(document()), ASSERT_NO_EXCEPTION_STATE, AttachLazily);
+ innerTextElement()->appendChild(HTMLBRElement::create(document()), ASSERT_NO_EXCEPTION, AttachLazily);
}
setFormControlValueMatchesRenderer(true);
« no previous file with comments | « Source/core/html/HTMLTextAreaElement.cpp ('k') | Source/core/html/HTMLTitleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698