summaryrefslogtreecommitdiffstats
path: root/WebCore/storage/Storage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/storage/Storage.cpp')
-rw-r--r--WebCore/storage/Storage.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/WebCore/storage/Storage.cpp b/WebCore/storage/Storage.cpp
index 0259ca4..0a8eed7 100644
--- a/WebCore/storage/Storage.cpp
+++ b/WebCore/storage/Storage.cpp
@@ -28,9 +28,6 @@
#if ENABLE(DOM_STORAGE)
-#include "Frame.h"
-#include "Page.h"
-#include "Settings.h"
#include "StorageArea.h"
#include "PlatformString.h"
#include <wtf/PassRefPtr.h>
@@ -56,7 +53,7 @@ Storage::~Storage()
unsigned Storage::length() const
{
- if (!m_frame || !m_frame->page() || m_frame->page()->settings()->privateBrowsingEnabled())
+ if (!m_frame)
return 0;
return m_storageArea->length();
@@ -64,7 +61,7 @@ unsigned Storage::length() const
String Storage::key(unsigned index) const
{
- if (!m_frame || !m_frame->page() || m_frame->page()->settings()->privateBrowsingEnabled())
+ if (!m_frame)
return String();
return m_storageArea->key(index);
@@ -72,7 +69,7 @@ String Storage::key(unsigned index) const
String Storage::getItem(const String& key) const
{
- if (!m_frame || !m_frame->page() || m_frame->page()->settings()->privateBrowsingEnabled())
+ if (!m_frame)
return String();
return m_storageArea->getItem(key);
@@ -105,7 +102,7 @@ void Storage::clear()
bool Storage::contains(const String& key) const
{
- if (!m_frame || !m_frame->page() || m_frame->page()->settings()->privateBrowsingEnabled())
+ if (!m_frame)
return false;
return m_storageArea->contains(key);