Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1545)

Unified Diff: third_party/WebKit/Source/modules/storage/StorageArea.cpp

Issue 2562323002: Devirtualize Frame::domWindow(). (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/storage/StorageArea.cpp
diff --git a/third_party/WebKit/Source/modules/storage/StorageArea.cpp b/third_party/WebKit/Source/modules/storage/StorageArea.cpp
index 9e3bb5510e9cae02f8131f352087f1d3017b958e..3271d94018a889cbbfd7236995e08e70c5265289 100644
--- a/third_party/WebKit/Source/modules/storage/StorageArea.cpp
+++ b/third_party/WebKit/Source/modules/storage/StorageArea.cpp
@@ -174,14 +174,14 @@ void StorageArea::dispatchLocalStorageEvent(
if (!frame->isLocalFrame())
continue;
LocalFrame* localFrame = toLocalFrame(frame);
- LocalDOMWindow* localWindow = localFrame->localDOMWindow();
+ LocalDOMWindow* localWindow = localFrame->domWindow();
Storage* storage =
DOMWindowStorage::from(*localWindow).optionalLocalStorage();
if (storage &&
localFrame->document()->getSecurityOrigin()->canAccess(
securityOrigin) &&
!isEventSource(storage, sourceAreaInstance))
- localFrame->localDOMWindow()->enqueueWindowEvent(
+ localFrame->domWindow()->enqueueWindowEvent(
StorageEvent::create(EventTypeNames::storage, key, oldValue,
newValue, pageURL, storage));
}
@@ -225,14 +225,14 @@ void StorageArea::dispatchSessionStorageEvent(
if (!frame->isLocalFrame())
continue;
LocalFrame* localFrame = toLocalFrame(frame);
- LocalDOMWindow* localWindow = localFrame->localDOMWindow();
+ LocalDOMWindow* localWindow = localFrame->domWindow();
Storage* storage =
DOMWindowStorage::from(*localWindow).optionalSessionStorage();
if (storage &&
localFrame->document()->getSecurityOrigin()->canAccess(
securityOrigin) &&
!isEventSource(storage, sourceAreaInstance))
- localFrame->localDOMWindow()->enqueueWindowEvent(StorageEvent::create(
+ localFrame->domWindow()->enqueueWindowEvent(StorageEvent::create(
EventTypeNames::storage, key, oldValue, newValue, pageURL, storage));
}
if (InspectorDOMStorageAgent* agent =

Powered by Google App Engine
This is Rietveld 408576698