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

Unified Diff: third_party/WebKit/Source/core/html/PluginDocument.cpp

Issue 2759063002: Remove most of Widget (FrameViewBase) class from HTMLPlugInElement. (Closed)
Patch Set: Fix shouldAccelerate Created 3 years, 9 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: third_party/WebKit/Source/core/html/PluginDocument.cpp
diff --git a/third_party/WebKit/Source/core/html/PluginDocument.cpp b/third_party/WebKit/Source/core/html/PluginDocument.cpp
index f928cbe9e7ff08f831dd258040d00b39ce93c428..9c4c34c201d0ce0adc1d99d70817ebed1f7f3f77 100644
--- a/third_party/WebKit/Source/core/html/PluginDocument.cpp
+++ b/third_party/WebKit/Source/core/html/PluginDocument.cpp
@@ -158,12 +158,7 @@ void PluginDocumentParser::finish() {
}
PluginView* PluginDocumentParser::pluginView() const {
- if (FrameViewBase* frameViewBase =
- toPluginDocument(document())->pluginWidget()) {
- SECURITY_DCHECK(frameViewBase->isPluginContainer());
- return toPluginView(frameViewBase);
- }
- return 0;
+ return toPluginDocument(document())->pluginView();
}
PluginDocument::PluginDocument(const DocumentInit& initializer)
@@ -179,14 +174,14 @@ DocumentParser* PluginDocument::createParser() {
return PluginDocumentParser::create(this);
}
-FrameViewBase* PluginDocument::pluginWidget() {
+PluginView* PluginDocument::pluginView() {
if (m_pluginNode && m_pluginNode->layoutObject()) {
CHECK(m_pluginNode->layoutObject()->isEmbeddedObject());
FrameViewBase* frameViewBase =
toLayoutEmbeddedObject(m_pluginNode->layoutObject())->frameViewBase();
if (!frameViewBase || !frameViewBase->isPluginContainer())
return nullptr;
- return frameViewBase;
+ return toPluginView(frameViewBase);
}
return 0;
}
« no previous file with comments | « third_party/WebKit/Source/core/html/PluginDocument.h ('k') | third_party/WebKit/Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698