Index: Source/WebKit/chromium/src/LocalFileSystemChromium.cpp |
diff --git a/Source/WebKit/chromium/src/LocalFileSystemChromium.cpp b/Source/WebKit/chromium/src/LocalFileSystemChromium.cpp |
index 21abe982704f57569c36673e211ba351ea03973c..7044f8bfd68291b2959c1c1bf2de70f02e3a78fc 100644 |
--- a/Source/WebKit/chromium/src/LocalFileSystemChromium.cpp |
+++ b/Source/WebKit/chromium/src/LocalFileSystemChromium.cpp |
@@ -157,7 +157,7 @@ static void openFileSystemHelper(ScriptExecutionContext* context, FileSystemType |
bool allowed = true; |
ASSERT(context); |
if (context->isDocument()) { |
- Document* document = static_cast<Document*>(context); |
+ Document* document = toDocument(context); |
WebFrameImpl* webFrame = WebFrameImpl::fromFrame(document->frame()); |
WebKit::WebViewImpl* webView = webFrame->viewImpl(); |
if (webView->permissionClient() && !webView->permissionClient()->allowFileSystem(webFrame)) |
@@ -194,7 +194,7 @@ void LocalFileSystem::deleteFileSystem(ScriptExecutionContext* context, FileSyst |
ASSERT(context); |
ASSERT_WITH_SECURITY_IMPLICATION(context->isDocument()); |
- Document* document = static_cast<Document*>(context); |
+ Document* document = toDocument(context); |
WebFrameImpl* webFrame = WebFrameImpl::fromFrame(document->frame()); |
WebKit::WebViewImpl* webView = webFrame->viewImpl(); |
if (webView->permissionClient() && !webView->permissionClient()->allowFileSystem(webFrame)) { |