Index: Source/core/rendering/RenderEmbeddedObject.cpp |
diff --git a/Source/core/rendering/RenderEmbeddedObject.cpp b/Source/core/rendering/RenderEmbeddedObject.cpp |
index b72f5f266c967fb389a769380770c1213753f4ea..8e2f8fb86a3a9bc9b11cc188eb3685e0ab59f07e 100644 |
--- a/Source/core/rendering/RenderEmbeddedObject.cpp |
+++ b/Source/core/rendering/RenderEmbeddedObject.cpp |
@@ -245,25 +245,6 @@ void RenderEmbeddedObject::layout() |
statePusher.pop(); |
} |
-void RenderEmbeddedObject::viewCleared() |
-{ |
- // This is required for <object> elements whose contents are rendered by WebCore (e.g. src="foo.html"). |
- if (node() && widget() && widget()->isFrameView()) { |
- FrameView* view = toFrameView(widget()); |
- int marginWidth = -1; |
- int marginHeight = -1; |
- if (node()->hasTagName(iframeTag)) { |
- HTMLIFrameElement* frame = toHTMLIFrameElement(node()); |
- marginWidth = frame->marginWidth(); |
- marginHeight = frame->marginHeight(); |
- } |
- if (marginWidth != -1) |
- view->setMarginWidth(marginWidth); |
- if (marginHeight != -1) |
- view->setMarginHeight(marginHeight); |
- } |
-} |
- |
bool RenderEmbeddedObject::scroll(ScrollDirection direction, ScrollGranularity granularity, float) |
{ |
return false; |