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

Unified Diff: Source/web/WebNode.cpp

Issue 625073002: Merge RenderWidget into single subclass, RenderPart (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments Created 6 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
« no previous file with comments | « Source/web/ContextMenuClientImpl.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebNode.cpp
diff --git a/Source/web/WebNode.cpp b/Source/web/WebNode.cpp
index d65a85b9b84d4ae803ebd72a211a7b2534c1fdc8..2e43acb061790a193d21fff747f5ebe5ce955893 100644
--- a/Source/web/WebNode.cpp
+++ b/Source/web/WebNode.cpp
@@ -42,7 +42,7 @@
#include "core/html/HTMLCollection.h"
#include "core/html/HTMLElement.h"
#include "core/rendering/RenderObject.h"
-#include "core/rendering/RenderWidget.h"
+#include "core/rendering/RenderPart.h"
#include "platform/Widget.h"
#include "public/platform/WebString.h"
#include "public/platform/WebVector.h"
@@ -230,8 +230,8 @@ WebPluginContainer* WebNode::pluginContainer() const
const Node& coreNode = *constUnwrap<Node>();
if (isHTMLObjectElement(coreNode) || isHTMLEmbedElement(coreNode)) {
RenderObject* object = coreNode.renderer();
- if (object && object->isWidget()) {
- Widget* widget = toRenderWidget(object)->widget();
+ if (object && object->isRenderPart()) {
+ Widget* widget = toRenderPart(object)->widget();
if (widget && widget->isPluginContainer())
return toWebPluginContainerImpl(widget);
}
« no previous file with comments | « Source/web/ContextMenuClientImpl.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698