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

Side by Side Diff: Source/core/dom/DatasetDOMStringMap.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/core/dom/DataTransferItemList.cpp ('k') | Source/core/dom/Document.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) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 unsigned length = m_element->attributeCount(); 171 unsigned length = m_element->attributeCount();
172 for (unsigned i = 0; i < length; i++) { 172 for (unsigned i = 0; i < length; i++) {
173 const Attribute* attribute = m_element->attributeItem(i); 173 const Attribute* attribute = m_element->attributeItem(i);
174 if (propertyNameMatchesAttributeName(name, attribute->localName())) 174 if (propertyNameMatchesAttributeName(name, attribute->localName()))
175 return true; 175 return true;
176 } 176 }
177 177
178 return false; 178 return false;
179 } 179 }
180 180
181 void DatasetDOMStringMap::setItem(const String& name, const String& value, Excep tionState& es) 181 void DatasetDOMStringMap::setItem(const String& name, const String& value, Excep tionState& exceptionState)
182 { 182 {
183 if (!isValidPropertyName(name)) { 183 if (!isValidPropertyName(name)) {
184 es.throwDOMException(SyntaxError, ExceptionMessages::failedToSet(name, " DOMStringMap", "'" + name + "' is not a valid property name.")); 184 exceptionState.throwDOMException(SyntaxError, ExceptionMessages::failedT oSet(name, "DOMStringMap", "'" + name + "' is not a valid property name."));
185 return; 185 return;
186 } 186 }
187 187
188 m_element->setAttribute(convertPropertyNameToAttributeName(name), value, es) ; 188 m_element->setAttribute(convertPropertyNameToAttributeName(name), value, exc eptionState);
189 } 189 }
190 190
191 void DatasetDOMStringMap::deleteItem(const String& name, ExceptionState& es) 191 void DatasetDOMStringMap::deleteItem(const String& name, ExceptionState& excepti onState)
192 { 192 {
193 if (!isValidPropertyName(name)) { 193 if (!isValidPropertyName(name)) {
194 es.throwDOMException(SyntaxError, ExceptionMessages::failedToDelete(name , "DOMStringMap", "'" + name + "' is not a valid property name.")); 194 exceptionState.throwDOMException(SyntaxError, ExceptionMessages::failedT oDelete(name, "DOMStringMap", "'" + name + "' is not a valid property name."));
195 return; 195 return;
196 } 196 }
197 197
198 m_element->removeAttribute(convertPropertyNameToAttributeName(name)); 198 m_element->removeAttribute(convertPropertyNameToAttributeName(name));
199 } 199 }
200 200
201 } // namespace WebCore 201 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/DataTransferItemList.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698