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

Unified Diff: Source/core/dom/DOMStringMap.h

Issue 64113006: Rename es => exceptionState in core/dom (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/dom/DOMSettableTokenList.cpp ('k') | Source/core/dom/DOMTokenList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DOMStringMap.h
diff --git a/Source/core/dom/DOMStringMap.h b/Source/core/dom/DOMStringMap.h
index 6f1cd28f229e3e19cf9ed4d00774dc5cf50207d0..07bd8f53cafa2633098391e3936eed2d18a5249d 100644
--- a/Source/core/dom/DOMStringMap.h
+++ b/Source/core/dom/DOMStringMap.h
@@ -49,18 +49,18 @@ public:
virtual bool contains(const String& name) = 0;
virtual void setItem(const String& name, const String& value, ExceptionState&) = 0;
virtual void deleteItem(const String& name, ExceptionState&) = 0;
- bool anonymousNamedSetter(const String& name, const String& value, ExceptionState& es)
+ bool anonymousNamedSetter(const String& name, const String& value, ExceptionState& exceptionState)
{
- setItem(name, value, es);
+ setItem(name, value, exceptionState);
return true;
}
bool anonymousNamedDeleter(const AtomicString& name, ExceptionState&)
{
// FIXME: Remove ExceptionState parameter.
- TrackExceptionState es;
- deleteItem(name, es);
- bool result = !es.hadException();
+ TrackExceptionState exceptionState;
+ deleteItem(name, exceptionState);
+ bool result = !exceptionState.hadException();
// DOMStringMap deleter should ignore exception.
// Behavior of Firefox and Opera are same.
// delete document.body.dataset["-foo"] // false instead of DOM Exception 12
@@ -77,13 +77,13 @@ public:
{
return item(String::number(index));
}
- bool anonymousIndexedSetter(uint32_t index, const String& value, ExceptionState& es)
+ bool anonymousIndexedSetter(uint32_t index, const String& value, ExceptionState& exceptionState)
{
- return anonymousNamedSetter(String::number(index), value, es);
+ return anonymousNamedSetter(String::number(index), value, exceptionState);
}
- bool anonymousIndexedDeleter(uint32_t index, ExceptionState& es)
+ bool anonymousIndexedDeleter(uint32_t index, ExceptionState& exceptionState)
{
- return anonymousNamedDeleter(AtomicString(String::number(index)), es);
+ return anonymousNamedDeleter(AtomicString(String::number(index)), exceptionState);
}
virtual Element* element() = 0;
« no previous file with comments | « Source/core/dom/DOMSettableTokenList.cpp ('k') | Source/core/dom/DOMTokenList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698