| Index: Source/bindings/v8/ExceptionStatePlaceholder.cpp
|
| diff --git a/Source/core/html/ime/Composition.cpp b/Source/bindings/v8/ExceptionStatePlaceholder.cpp
|
| similarity index 77%
|
| copy from Source/core/html/ime/Composition.cpp
|
| copy to Source/bindings/v8/ExceptionStatePlaceholder.cpp
|
| index e74501bcd8637afa85872dae701e91f04827e1ee..352ba0090db1518753306a414e908683fd361773 100644
|
| --- a/Source/core/html/ime/Composition.cpp
|
| +++ b/Source/bindings/v8/ExceptionStatePlaceholder.cpp
|
| @@ -29,27 +29,27 @@
|
| */
|
|
|
| #include "config.h"
|
| -#include "core/html/ime/Composition.h"
|
| -
|
| -#include "core/dom/Node.h"
|
| -#include "core/dom/Range.h"
|
| +#include "bindings/v8/ExceptionStatePlaceholder.h"
|
|
|
| namespace WebCore {
|
|
|
| -Composition::~Composition()
|
| -{
|
| -}
|
| +#if !ASSERT_DISABLED
|
|
|
| -PassRefPtr<Composition> Composition::create(Node* text, Range* caret)
|
| +NoExceptionStateAssertionChecker::NoExceptionStateAssertionChecker(const char* file, int line)
|
| + : ExceptionState(0)
|
| + , m_file(file)
|
| + , m_line(line) { }
|
| +
|
| +void NoExceptionStateAssertionChecker::throwDOMException(const ExceptionCode&, const char*)
|
| {
|
| - return adoptRef(new Composition(text, caret));
|
| + ASSERT_AT(false, m_file, m_line, "");
|
| }
|
|
|
| -Composition::Composition(Node* text, Range* caret)
|
| - : m_text(text)
|
| - , m_caret(caret)
|
| +void NoExceptionStateAssertionChecker::throwTypeError(const char*)
|
| {
|
| - ScriptWrappable::init(this);
|
| + ASSERT_AT(false, m_file, m_line, "");
|
| }
|
|
|
| +#endif
|
| +
|
| } // namespace WebCore
|
|
|