Skip to content
  • andersca@apple.com's avatar
    Apply changes from storage events locally · c4232f57
    andersca@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=111502
    
    Reviewed by Sam Weinig.
    
    Source/WebCore:
    
    Add and export a helper function for setting an item without taking
    into account the quota for the map. Also, reindent StorageMap.h
    
    * WebCore.exp.in:
    * storage/StorageMap.cpp:
    (WebCore::StorageMap::setItemIgnoringQuota):
    (WebCore):
    * storage/StorageMap.h:
    (StorageMap):
    (WebCore::StorageMap::quota):
    
    Source/WebKit2:
    
    * WebProcess/Storage/StorageAreaProxy.cpp:
    (WebKit::StorageAreaProxy::StorageAreaProxy):
    Store the security origin as a member variable.
    
    (WebKit::StorageAreaProxy::dispatchStorageEvent):
    Set the item and call the appropriate event dispatch function.
    
    (WebKit::StorageAreaProxy::dispatchSessionStorageEvent):
    (WebKit::StorageAreaProxy::dispatchLocalStorageEvent):
    Add stubs.
    
    * WebProcess/Storage/StorageAreaProxy.h:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147354 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c4232f57