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

Side by Side Diff: Source/web/WebRange.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/web/WebNode.cpp ('k') | Source/web/tests/LocaleWinTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 } 74 }
75 75
76 int WebRange::endOffset() const 76 int WebRange::endOffset() const
77 { 77 {
78 return m_private->endOffset(); 78 return m_private->endOffset();
79 } 79 }
80 80
81 WebNode WebRange::startContainer(WebExceptionCode& exceptionCode) const 81 WebNode WebRange::startContainer(WebExceptionCode& exceptionCode) const
82 { 82 {
83 // FIXME: Create a wrapper class that just sets the internal int. 83 // FIXME: Create a wrapper class that just sets the internal int.
84 TrackExceptionState es; 84 TrackExceptionState exceptionState;
85 RefPtr<Node> node(m_private->startContainer(es)); 85 RefPtr<Node> node(m_private->startContainer(exceptionState));
86 exceptionCode = es.code(); 86 exceptionCode = exceptionState.code();
87 return node.release(); 87 return node.release();
88 } 88 }
89 89
90 WebNode WebRange::endContainer(WebExceptionCode& exceptionCode) const 90 WebNode WebRange::endContainer(WebExceptionCode& exceptionCode) const
91 { 91 {
92 // FIXME: Create a wrapper class that just sets the internal int. 92 // FIXME: Create a wrapper class that just sets the internal int.
93 TrackExceptionState es; 93 TrackExceptionState exceptionState;
94 RefPtr<Node> node(m_private->endContainer(es)); 94 RefPtr<Node> node(m_private->endContainer(exceptionState));
95 exceptionCode = es.code(); 95 exceptionCode = exceptionState.code();
96 return node.release(); 96 return node.release();
97 } 97 }
98 98
99 WebString WebRange::toHTMLText() const 99 WebString WebRange::toHTMLText() const
100 { 100 {
101 return m_private->toHTML(); 101 return m_private->toHTML();
102 } 102 }
103 103
104 WebString WebRange::toPlainText() const 104 WebString WebRange::toPlainText() const
105 { 105 {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 void WebRange::assign(WebRangePrivate* p) 162 void WebRange::assign(WebRangePrivate* p)
163 { 163 {
164 // p is already ref'd for us by the caller 164 // p is already ref'd for us by the caller
165 if (m_private) 165 if (m_private)
166 m_private->deref(); 166 m_private->deref();
167 m_private = p; 167 m_private = p;
168 } 168 }
169 169
170 } // namespace blink 170 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebNode.cpp ('k') | Source/web/tests/LocaleWinTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698