2008-05-07 Ariya Hidayat <ariya.hidayat@trolltech.com>
authorhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 May 2008 09:36:59 +0000 (09:36 +0000)
committerhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 May 2008 09:36:59 +0000 (09:36 +0000)
        Rubber-stamped by Holger.

        Fix building without storage support.

        * page/PageGroup.cpp:
        (WebCore::PageGroup::closeLocalStorage): proper #if

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@32948 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/page/PageGroup.cpp

index 0287f5d..86debd5 100644 (file)
@@ -1,5 +1,14 @@
 2008-05-07  Ariya Hidayat  <ariya.hidayat@trolltech.com>
 
+        Rubber-stamped by Holger.
+
+        Fix building without storage support.
+
+        * page/PageGroup.cpp:
+        (WebCore::PageGroup::closeLocalStorage): proper #if
+
+2008-05-07  Ariya Hidayat  <ariya.hidayat@trolltech.com>
+
         Rubber-stamped by Oliver Hunt.
 
         Fix building without accessibility.
index 4580454..9f52004 100644 (file)
@@ -86,6 +86,7 @@ PageGroup* PageGroup::pageGroup(const String& groupName)
 
 void PageGroup::closeLocalStorage()
 {
+#if ENABLE(DOM_STORAGE)
     if (!pageGroups)
         return;
 
@@ -95,6 +96,7 @@ void PageGroup::closeLocalStorage()
         if (LocalStorage* localStorage = it->second->localStorage())
             localStorage->close();
     }
+#endif
 }
 
 void PageGroup::addPage(Page* page)