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

Unified Diff: Source/core/editing/FrameSelection.cpp

Issue 72363002: Rename es => exceptionState in other than bindings/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Retry Created 7 years, 1 month 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/editing/EditorCommand.cpp ('k') | Source/core/editing/MergeIdenticalElementsCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/FrameSelection.cpp
diff --git a/Source/core/editing/FrameSelection.cpp b/Source/core/editing/FrameSelection.cpp
index 6a25cfe9bd8c20f7bd0ceb67909236deaba9c93a..4c5c1a13610e4fcfa2680581653a342b88a20386 100644
--- a/Source/core/editing/FrameSelection.cpp
+++ b/Source/core/editing/FrameSelection.cpp
@@ -359,9 +359,9 @@ void FrameSelection::respondToNodeModification(Node& node, bool baseRemoved, boo
else
m_selection.setWithoutValidation(m_selection.end(), m_selection.start());
} else if (RefPtr<Range> range = m_selection.firstRange()) {
- TrackExceptionState es;
- Range::CompareResults compareResult = range->compareNode(&node, es);
- if (!es.hadException() && (compareResult == Range::NODE_BEFORE_AND_AFTER || compareResult == Range::NODE_INSIDE)) {
+ TrackExceptionState exceptionState;
+ Range::CompareResults compareResult = range->compareNode(&node, exceptionState);
+ if (!exceptionState.hadException() && (compareResult == Range::NODE_BEFORE_AND_AFTER || compareResult == Range::NODE_INSIDE)) {
// If we did nothing here, when this node's renderer was destroyed, the rect that it
// occupied would be invalidated, but, selection gaps that change as a result of
// the removal wouldn't be invalidated.
@@ -1427,9 +1427,9 @@ bool FrameSelection::setSelectedRange(Range* range, EAffinity affinity, bool clo
// Non-collapsed ranges are not allowed to start at the end of a line that is wrapped,
// they start at the beginning of the next line instead
- TrackExceptionState es;
- bool collapsed = range->collapsed(es);
- if (es.hadException())
+ TrackExceptionState exceptionState;
+ bool collapsed = range->collapsed(exceptionState);
+ if (exceptionState.hadException())
return false;
// FIXME: Can we provide extentAffinity?
« no previous file with comments | « Source/core/editing/EditorCommand.cpp ('k') | Source/core/editing/MergeIdenticalElementsCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698