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

Unified Diff: Source/bindings/v8/ExceptionStatePlaceholder.cpp

Issue 18398002: Remove IDBNotFoundError ExceptionCode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missing include in code gen wich causes win compile failure Created 7 years, 5 months 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698