summaryrefslogtreecommitdiffstats
path: root/WebCore/storage/StorageEvent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/storage/StorageEvent.cpp')
-rw-r--r--WebCore/storage/StorageEvent.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/WebCore/storage/StorageEvent.cpp b/WebCore/storage/StorageEvent.cpp
index 8600d3c..f2945a9 100644
--- a/WebCore/storage/StorageEvent.cpp
+++ b/WebCore/storage/StorageEvent.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2008 Apple Inc. All Rights Reserved.
+ * Copyright (C) 2008, 2009 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -29,20 +29,22 @@
#if ENABLE(DOM_STORAGE)
#include "DOMWindow.h"
+#include "Storage.h"
namespace WebCore {
-StorageEvent::StorageEvent(const AtomicString& type, const String& key, const String& oldValue, const String& newValue, const String& uri, PassRefPtr<DOMWindow> source)
+StorageEvent::StorageEvent(const AtomicString& type, const String& key, const String& oldValue, const String& newValue, const String& uri, PassRefPtr<DOMWindow> source, Storage* storageArea)
: Event(type, false, true)
, m_key(key)
, m_oldValue(oldValue)
, m_newValue(newValue)
, m_uri(uri)
, m_source(source)
+ , m_storageArea(storageArea)
{
}
-void StorageEvent::initStorageEvent(const AtomicString& type, bool canBubble, bool cancelable, const String& key, const String& oldValue, const String& newValue, const String& uri, PassRefPtr<DOMWindow> source)
+void StorageEvent::initStorageEvent(const AtomicString& type, bool canBubble, bool cancelable, const String& key, const String& oldValue, const String& newValue, const String& uri, PassRefPtr<DOMWindow> source, Storage* storageArea)
{
if (dispatched())
return;
@@ -54,9 +56,10 @@ void StorageEvent::initStorageEvent(const AtomicString& type, bool canBubble, bo
m_newValue = newValue;
m_uri = uri;
m_source = source;
+ m_storageArea = storageArea;
}
-}
+} // namespace WebCore
#endif // ENABLE(DOM_STORAGE)