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

Unified Diff: Source/core/html/HTMLPlugInElement.cpp

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/core/html/HTMLPlugInElement.cpp
diff --git a/Source/core/html/HTMLPlugInElement.cpp b/Source/core/html/HTMLPlugInElement.cpp
index 59312d7f0b222b36f2af8394e34bee856f0c265c..273560059b834293362340ddfa7e699e50359e5c 100644
--- a/Source/core/html/HTMLPlugInElement.cpp
+++ b/Source/core/html/HTMLPlugInElement.cpp
@@ -140,7 +140,7 @@ bool HTMLPlugInElement::willRespondToMouseClickEvents()
{
if (isDisabledFormControl())
return false;
- RenderObject* r = renderer();
+ LayoutObject* r = renderer();
return r && (r->isEmbeddedObject() || r->isRenderPart());
}
@@ -263,13 +263,13 @@ void HTMLPlugInElement::detach(const AttachContext& context)
HTMLFrameOwnerElement::detach(context);
}
-RenderObject* HTMLPlugInElement::createRenderer(RenderStyle* style)
+LayoutObject* HTMLPlugInElement::createRenderer(RenderStyle* style)
{
// Fallback content breaks the DOM->Renderer class relationship of this
// class and all superclasses because createObject won't necessarily return
// a RenderEmbeddedObject or RenderPart.
if (useFallbackContent())
- return RenderObject::createObject(this, style);
+ return LayoutObject::createObject(this, style);
if (isImageType()) {
RenderImage* image = new RenderImage(this);
@@ -374,7 +374,7 @@ void HTMLPlugInElement::defaultEventHandler(Event* event)
// FIXME: Mouse down and scroll events are passed down to plug-in via custom
// code in EventHandler; these code paths should be united.
- RenderObject* r = renderer();
+ LayoutObject* r = renderer();
if (!r || !r->isRenderPart())
return;
if (r->isEmbeddedObject()) {

Powered by Google App Engine
This is Rietveld 408576698