Commit bfe38819 authored by sergio@webkit.org's avatar sergio@webkit.org

WorkerGlobalScopeWebDatabase requires ENABLE(WORKERS)

https://bugs.webkit.org/show_bug.cgi?id=120395

Reviewed by Christophe Dumez.

WorkerGlobalScopeDatabase uses the WorkerGlobalScope object which is
defined only when WORKERS are enabled. We should guard that code.

* Modules/webdatabase/WorkerGlobalScopeWebDatabase.cpp:
* Modules/webdatabase/WorkerGlobalScopeWebDatabase.h:
* Modules/webdatabase/WorkerGlobalScopeWebDatabase.idl:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154732 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent f67a8c17
2013-08-28 Sergio Villar Senin <svillar@igalia.com>
WorkerGlobalScopeWebDatabase requires ENABLE(WORKERS)
https://bugs.webkit.org/show_bug.cgi?id=120395
Reviewed by Christophe Dumez.
WorkerGlobalScopeDatabase uses the WorkerGlobalScope object which is
defined only when WORKERS are enabled. We should guard that code.
* Modules/webdatabase/WorkerGlobalScopeWebDatabase.cpp:
* Modules/webdatabase/WorkerGlobalScopeWebDatabase.h:
* Modules/webdatabase/WorkerGlobalScopeWebDatabase.idl:
2013-08-28 Sergio Villar Senin <svillar@igalia.com>
[CSS Grid Layout] Fix grid position resolution
......@@ -27,7 +27,7 @@
#include "config.h"
#if ENABLE(SQL_DATABASE)
#if ENABLE(SQL_DATABASE) && ENABLE(WORKERS)
#include "WorkerGlobalScopeWebDatabase.h"
......@@ -73,4 +73,4 @@ PassRefPtr<DatabaseSync> WorkerGlobalScopeWebDatabase::openDatabaseSync(WorkerGl
} // namespace WebCore
#endif // ENABLE(SQL_DATABASE)
#endif // ENABLE(SQL_DATABASE) && ENABLE(WORKERS)
......@@ -27,7 +27,7 @@
#ifndef WorkerGlobalScopeWebDatabase_h
#define WorkerGlobalScopeWebDatabase_h
#if ENABLE(SQL_DATABASE)
#if ENABLE(SQL_DATABASE) && ENABLE(WORKERS)
#include "ExceptionCode.h"
#include <wtf/Forward.h>
......@@ -54,6 +54,6 @@ private:
} // namespace WebCore
#endif // ENABLE(SQL_DATABASE)
#endif // ENABLE(SQL_DATABASE) && ENABLE(WORKERS)
#endif // WorkerGlobalScopeWebDatabase_h
......@@ -25,7 +25,7 @@
*/
[
Conditional=SQL_DATABASE,
Conditional=SQL_DATABASE&WORKERS,
] partial interface WorkerGlobalScope {
[RaisesException] Database openDatabase(DOMString name, DOMString version, DOMString displayName, unsigned long estimatedSize, optional DatabaseCallback creationCallback);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment