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

Unified Diff: Source/core/html/HTMLEmbedElement.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/core/html/HTMLEmbedElement.h ('k') | Source/core/html/HTMLFrameOwnerElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLEmbedElement.cpp
diff --git a/Source/core/html/HTMLEmbedElement.cpp b/Source/core/html/HTMLEmbedElement.cpp
index 5d49a4802c748c23f3830a498821b2e2c158af78..7083867333d41bf1038b7ae806467460310adf8d 100644
--- a/Source/core/html/HTMLEmbedElement.cpp
+++ b/Source/core/html/HTMLEmbedElement.cpp
@@ -34,7 +34,7 @@
#include "core/html/PluginDocument.h"
#include "core/html/parser/HTMLParserIdioms.h"
#include "core/rendering/RenderEmbeddedObject.h"
-#include "core/rendering/RenderWidget.h"
+#include "core/rendering/RenderPart.h"
namespace blink {
@@ -52,20 +52,20 @@ PassRefPtrWillBeRawPtr<HTMLEmbedElement> HTMLEmbedElement::create(Document& docu
return element.release();
}
-static inline RenderWidget* findWidgetRenderer(const Node* n)
+static inline RenderPart* findPartRenderer(const Node* n)
{
if (!n->renderer())
n = Traversal<HTMLObjectElement>::firstAncestor(*n);
- if (n && n->renderer() && n->renderer()->isWidget())
- return toRenderWidget(n->renderer());
+ if (n && n->renderer() && n->renderer()->isRenderPart())
+ return toRenderPart(n->renderer());
return 0;
}
-RenderWidget* HTMLEmbedElement::existingRenderWidget() const
+RenderPart* HTMLEmbedElement::existingRenderPart() const
{
- return findWidgetRenderer(this);
+ return findPartRenderer(this);
}
bool HTMLEmbedElement::isPresentationAttribute(const QualifiedName& name) const
« no previous file with comments | « Source/core/html/HTMLEmbedElement.h ('k') | Source/core/html/HTMLFrameOwnerElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698