| Index: Source/modules/filesystem/FileWriter.cpp
|
| diff --git a/Source/modules/filesystem/FileWriter.cpp b/Source/modules/filesystem/FileWriter.cpp
|
| index 84e2a5d5d62e323a23ba2d54024462467f91d6d9..a22fac948d30ba7d7b9648af4fd849b991d356b8 100644
|
| --- a/Source/modules/filesystem/FileWriter.cpp
|
| +++ b/Source/modules/filesystem/FileWriter.cpp
|
| @@ -87,21 +87,21 @@ void FileWriter::stop()
|
| m_readyState = DONE;
|
| }
|
|
|
| -void FileWriter::write(Blob* data, ExceptionState& es)
|
| +void FileWriter::write(Blob* data, ExceptionState& exceptionState)
|
| {
|
| ASSERT(writer());
|
| ASSERT(data);
|
| ASSERT(m_truncateLength == -1);
|
| if (m_readyState == WRITING) {
|
| - setError(FileError::INVALID_STATE_ERR, es);
|
| + setError(FileError::INVALID_STATE_ERR, exceptionState);
|
| return;
|
| }
|
| if (!data) {
|
| - setError(FileError::TYPE_MISMATCH_ERR, es);
|
| + setError(FileError::TYPE_MISMATCH_ERR, exceptionState);
|
| return;
|
| }
|
| if (m_recursionDepth > kMaxRecursionDepth) {
|
| - setError(FileError::SECURITY_ERR, es);
|
| + setError(FileError::SECURITY_ERR, exceptionState);
|
| return;
|
| }
|
|
|
| @@ -120,11 +120,11 @@ void FileWriter::write(Blob* data, ExceptionState& es)
|
| fireEvent(EventTypeNames::writestart);
|
| }
|
|
|
| -void FileWriter::seek(long long position, ExceptionState& es)
|
| +void FileWriter::seek(long long position, ExceptionState& exceptionState)
|
| {
|
| ASSERT(writer());
|
| if (m_readyState == WRITING) {
|
| - setError(FileError::INVALID_STATE_ERR, es);
|
| + setError(FileError::INVALID_STATE_ERR, exceptionState);
|
| return;
|
| }
|
|
|
| @@ -133,16 +133,16 @@ void FileWriter::seek(long long position, ExceptionState& es)
|
| seekInternal(position);
|
| }
|
|
|
| -void FileWriter::truncate(long long position, ExceptionState& es)
|
| +void FileWriter::truncate(long long position, ExceptionState& exceptionState)
|
| {
|
| ASSERT(writer());
|
| ASSERT(m_truncateLength == -1);
|
| if (m_readyState == WRITING || position < 0) {
|
| - setError(FileError::INVALID_STATE_ERR, es);
|
| + setError(FileError::INVALID_STATE_ERR, exceptionState);
|
| return;
|
| }
|
| if (m_recursionDepth > kMaxRecursionDepth) {
|
| - setError(FileError::SECURITY_ERR, es);
|
| + setError(FileError::SECURITY_ERR, exceptionState);
|
| return;
|
| }
|
|
|
| @@ -160,7 +160,7 @@ void FileWriter::truncate(long long position, ExceptionState& es)
|
| fireEvent(EventTypeNames::writestart);
|
| }
|
|
|
| -void FileWriter::abort(ExceptionState& es)
|
| +void FileWriter::abort(ExceptionState& exceptionState)
|
| {
|
| ASSERT(writer());
|
| if (m_readyState != WRITING)
|
| @@ -312,10 +312,10 @@ void FileWriter::fireEvent(const AtomicString& type)
|
| ASSERT(m_recursionDepth >= 0);
|
| }
|
|
|
| -void FileWriter::setError(FileError::ErrorCode errorCode, ExceptionState& es)
|
| +void FileWriter::setError(FileError::ErrorCode errorCode, ExceptionState& exceptionState)
|
| {
|
| ASSERT(errorCode);
|
| - FileError::throwDOMException(es, errorCode);
|
| + FileError::throwDOMException(exceptionState, errorCode);
|
| m_error = FileError::create(errorCode);
|
| }
|
|
|
|
|