| Index: Source/bindings/v8/ExceptionStatePlaceholder.cpp
|
| diff --git a/Source/modules/quota/StorageErrorCallback.cpp b/Source/bindings/v8/ExceptionStatePlaceholder.cpp
|
| similarity index 77%
|
| copy from Source/modules/quota/StorageErrorCallback.cpp
|
| copy to Source/bindings/v8/ExceptionStatePlaceholder.cpp
|
| index edb16d2f42b1bef9b7267b53cac462aab4616aae..352ba0090db1518753306a414e908683fd361773 100644
|
| --- a/Source/modules/quota/StorageErrorCallback.cpp
|
| +++ b/Source/bindings/v8/ExceptionStatePlaceholder.cpp
|
| @@ -29,24 +29,27 @@
|
| */
|
|
|
| #include "config.h"
|
| +#include "bindings/v8/ExceptionStatePlaceholder.h"
|
|
|
| -#include "modules/quota/StorageErrorCallback.h"
|
| +namespace WebCore {
|
|
|
| -#include "core/dom/DOMException.h"
|
| +#if !ASSERT_DISABLED
|
|
|
| -namespace WebCore {
|
| +NoExceptionStateAssertionChecker::NoExceptionStateAssertionChecker(const char* file, int line)
|
| + : ExceptionState(0)
|
| + , m_file(file)
|
| + , m_line(line) { }
|
|
|
| -StorageErrorCallback::CallbackTask::CallbackTask(PassRefPtr<StorageErrorCallback> callback, ExceptionCode ec)
|
| - : m_callback(callback)
|
| - , m_ec(ec)
|
| +void NoExceptionStateAssertionChecker::throwDOMException(const ExceptionCode&, const char*)
|
| {
|
| + ASSERT_AT(false, m_file, m_line, "");
|
| }
|
|
|
| -void StorageErrorCallback::CallbackTask::performTask(ScriptExecutionContext*)
|
| +void NoExceptionStateAssertionChecker::throwTypeError(const char*)
|
| {
|
| - if (!m_callback)
|
| - return;
|
| - m_callback->handleEvent(DOMException::create(m_ec).get());
|
| + ASSERT_AT(false, m_file, m_line, "");
|
| }
|
|
|
| +#endif
|
| +
|
| } // namespace WebCore
|
|
|