| Index: Source/core/frame/DOMWindowBase64.cpp
|
| diff --git a/Source/core/frame/DOMWindowBase64.cpp b/Source/core/frame/DOMWindowBase64.cpp
|
| index a2e8d5ec185591b23fc6e560cb87dc024e92e076..2d2e1f7c3240a3d747745426761edbd16ab1f592 100644
|
| --- a/Source/core/frame/DOMWindowBase64.cpp
|
| +++ b/Source/core/frame/DOMWindowBase64.cpp
|
| @@ -42,31 +42,31 @@ namespace WebCore {
|
|
|
| namespace DOMWindowBase64 {
|
|
|
| -String btoa(void*, const String& stringToEncode, ExceptionState& es)
|
| +String btoa(void*, const String& stringToEncode, ExceptionState& exceptionState)
|
| {
|
| if (stringToEncode.isNull())
|
| return String();
|
|
|
| if (!stringToEncode.containsOnlyLatin1()) {
|
| - es.throwDOMException(InvalidCharacterError, "'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");
|
| + exceptionState.throwDOMException(InvalidCharacterError, "'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");
|
| return String();
|
| }
|
|
|
| return base64Encode(stringToEncode.latin1());
|
| }
|
|
|
| -String atob(void*, const String& encodedString, ExceptionState& es)
|
| +String atob(void*, const String& encodedString, ExceptionState& exceptionState)
|
| {
|
| if (encodedString.isNull())
|
| return String();
|
|
|
| if (!encodedString.containsOnlyLatin1()) {
|
| - es.throwDOMException(InvalidCharacterError, "'atob' failed: The string to be decoded contains characters outside of the Latin1 range.");
|
| + exceptionState.throwDOMException(InvalidCharacterError, "'atob' failed: The string to be decoded contains characters outside of the Latin1 range.");
|
| return String();
|
| }
|
| Vector<char> out;
|
| if (!base64Decode(encodedString, out, isHTMLSpace<UChar>, Base64ValidatePadding)) {
|
| - es.throwDOMException(InvalidCharacterError, "'atob' failed: The string to be decoded is not correctly encoded.");
|
| + exceptionState.throwDOMException(InvalidCharacterError, "'atob' failed: The string to be decoded is not correctly encoded.");
|
| return String();
|
| }
|
|
|
|
|