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

Unified Diff: Source/web/WebFrameImpl.cpp

Issue 26434002: Cleanup: Add more conversion helpers for usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 months 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: Source/web/WebFrameImpl.cpp
diff --git a/Source/web/WebFrameImpl.cpp b/Source/web/WebFrameImpl.cpp
index 3e4ebcebfc24701d57a41c1e1280d42219d5cd05..f36023e334808e3c5454d91860318028c4fb5ba0 100644
--- a/Source/web/WebFrameImpl.cpp
+++ b/Source/web/WebFrameImpl.cpp
@@ -2255,7 +2255,7 @@ WebFrameImpl* WebFrameImpl::fromFrame(Frame* frame)
{
if (!frame)
return 0;
- return static_cast<FrameLoaderClientImpl*>(frame->loader()->client())->webFrame();
+ return toFrameLoaderClientImpl(frame->loader()->client())->webFrame();
}
WebFrameImpl* WebFrameImpl::fromFrameOwnerElement(Element* element)
@@ -2275,12 +2275,12 @@ WebViewImpl* WebFrameImpl::viewImpl() const
WebDataSourceImpl* WebFrameImpl::dataSourceImpl() const
{
- return static_cast<WebDataSourceImpl*>(dataSource());
+ return toWebDataSourceImpl(dataSource());
}
WebDataSourceImpl* WebFrameImpl::provisionalDataSourceImpl() const
{
- return static_cast<WebDataSourceImpl*>(provisionalDataSource());
+ return toWebDataSourceImpl(provisionalDataSource());
}
void WebFrameImpl::setFindEndstateFocusAndSelection()

Powered by Google App Engine
This is Rietveld 408576698