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

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: Fix unit test failures 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
Index: Source/web/WebNode.cpp
diff --git a/Source/web/WebNode.cpp b/Source/web/WebNode.cpp
index d65a85b9b84d4ae803ebd72a211a7b2534c1fdc8..464945a69d8b59b13f1739239dc2cd0c56866051 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"
@@ -231,7 +231,7 @@ WebPluginContainer* WebNode::pluginContainer() const
if (isHTMLObjectElement(coreNode) || isHTMLEmbedElement(coreNode)) {
RenderObject* object = coreNode.renderer();
if (object && object->isWidget()) {
- Widget* widget = toRenderWidget(object)->widget();
+ Widget* widget = toRenderPart(object)->widget();
if (widget && widget->isPluginContainer())
return toWebPluginContainerImpl(widget);
}

Powered by Google App Engine
This is Rietveld 408576698