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

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

Issue 18398002: Remove IDBNotFoundError ExceptionCode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: merge Created 7 years, 6 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/platform/Partitions.cpp b/Source/bindings/v8/ExceptionStatePlaceholder.cpp
similarity index 74%
copy from Source/core/platform/Partitions.cpp
copy to Source/bindings/v8/ExceptionStatePlaceholder.cpp
index 609672b70424436c0ca835c78de6e96cbc45dc53..063ebf68c77a05038c7c4e9574a56e14f2aba3c1 100644
--- a/Source/core/platform/Partitions.cpp
+++ b/Source/bindings/v8/ExceptionStatePlaceholder.cpp
@@ -28,24 +28,31 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-
#include "config.h"
-#include "core/platform/Partitions.h"
+#include "bindings/v8/ExceptionStatePlaceholder.h"
-#if ENABLE(PARTITION_ALLOC)
namespace WebCore {
-PartitionRoot Partitions::m_objectModelRoot;
+IgnorableExceptionState::IgnorableExceptionState()
+ : ExceptionState(0) { }
-void Partitions::init()
+void IgnorableExceptionState::throwDOMException(const ExceptionCode& ec, const char*)
{
- partitionAllocInit(&m_objectModelRoot);
+ m_code = ec;
}
-void Partitions::shutdown()
+#if !ASSERT_DISABLED
+
+NoExceptionStateAssertionChecker::NoExceptionStateAssertionChecker(const char* file, int line)
+ : ExceptionState(0)
+ , m_file(file)
+ , m_line(line) { }
+
+void NoExceptionStateAssertionChecker::throwDOMException(const ExceptionCode&, const char*)
{
- partitionAllocShutdown(&m_objectModelRoot);
+ ASSERT_AT(false, m_file, m_line, "");
}
+
#endif
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698