Fix the build with DATABASE=0.
authorhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 30 Nov 2007 19:33:32 +0000 (19:33 +0000)
committerhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 30 Nov 2007 19:33:32 +0000 (19:33 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28248 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/page/Settings.cpp

index 673ab05df1e2877406878208ee55f94649bd28b0..780a788071925bb58e280ed460a290d90d424c6d 100644 (file)
@@ -1,3 +1,13 @@
+2007-11-30  Simon Hausmann  <hausmann@webkit.org>
+
+        Reviewed by Adam Roben.
+
+        Fix the build with DATABASE=0.
+
+        * page/Settings.cpp:
+        (WebCore::Settings::setDefaultDatabaseOriginQuota):
+        (WebCore::Settings::defaultDatabaseOriginQuota):
+
 2007-11-30  Nikolas Zimmermann  <zimmermann@kde.org>
 
         Rubber stamped by Darin.
index ac5a12ab462b5f4bb93c275fa2115d0dcbcf1532..9719dea1c0d335c8d124ce37b86782e70f98d289 100644 (file)
@@ -291,12 +291,18 @@ void Settings::setAuthorAndUserStylesEnabled(bool authorAndUserStylesEnabled)
 
 void Settings::setDefaultDatabaseOriginQuota(unsigned long long quota)
 {
+#if ENABLE(DATABASE)
     DatabaseTracker::tracker().setDefaultOriginQuota(quota);
+#endif
 }
 
 unsigned long long Settings::defaultDatabaseOriginQuota() const
 {
+#if ENABLE(DATABASE)
     return DatabaseTracker::tracker().defaultOriginQuota();
+#else
+    return 0;
+#endif
 }
 
 } // namespace WebCore