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

Unified Diff: Source/core/html/HTMLOptionElement.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/html/HTMLMeterElement.cpp ('k') | Source/core/html/HTMLOptionsCollection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLOptionElement.cpp
diff --git a/Source/core/html/HTMLOptionElement.cpp b/Source/core/html/HTMLOptionElement.cpp
index d84e1a9ce2693a254af16be9bb71444185169995..614e9ccec707a1a06ccbc06e37ad1f311482efa8 100644
--- a/Source/core/html/HTMLOptionElement.cpp
+++ b/Source/core/html/HTMLOptionElement.cpp
@@ -61,14 +61,14 @@ PassRefPtr<HTMLOptionElement> HTMLOptionElement::create(Document& document)
}
PassRefPtr<HTMLOptionElement> HTMLOptionElement::createForJSConstructor(Document& document, const String& data, const String& value,
- bool defaultSelected, bool selected, ExceptionState& es)
+ bool defaultSelected, bool selected, ExceptionState& exceptionState)
{
RefPtr<HTMLOptionElement> element = adoptRef(new HTMLOptionElement(document));
RefPtr<Text> text = Text::create(document, data.isNull() ? "" : data);
- element->appendChild(text.release(), es);
- if (es.hadException())
+ element->appendChild(text.release(), exceptionState);
+ if (exceptionState.hadException())
return 0;
if (!value.isNull())
@@ -120,7 +120,7 @@ String HTMLOptionElement::text() const
return text.stripWhiteSpace(isHTMLSpace<UChar>).simplifyWhiteSpace(isHTMLSpace<UChar>);
}
-void HTMLOptionElement::setText(const String &text, ExceptionState& es)
+void HTMLOptionElement::setText(const String &text, ExceptionState& exceptionState)
{
RefPtr<Node> protectFromMutationEvents(this);
@@ -137,7 +137,7 @@ void HTMLOptionElement::setText(const String &text, ExceptionState& es)
toText(child)->setData(text);
else {
removeChildren();
- appendChild(Text::create(document(), text), es);
+ appendChild(Text::create(document(), text), exceptionState);
}
if (selectIsMenuList && select->selectedIndex() != oldSelectedIndex)
« no previous file with comments | « Source/core/html/HTMLMeterElement.cpp ('k') | Source/core/html/HTMLOptionsCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698