Index: Source/core/rendering/RenderInline.cpp |
diff --git a/Source/core/rendering/RenderInline.cpp b/Source/core/rendering/RenderInline.cpp |
index 3752c456562061611b8f5130e3f91fe5cde61bd7..a7615b4fe9ab67e5529a9c8cdfd78e603ed30916 100644 |
--- a/Source/core/rendering/RenderInline.cpp |
+++ b/Source/core/rendering/RenderInline.cpp |
@@ -37,7 +37,6 @@ |
#include "core/rendering/RenderArena.h" |
#include "core/rendering/RenderBlock.h" |
#include "core/rendering/RenderFlowThread.h" |
-#include "core/rendering/RenderFullScreen.h" |
#include "core/rendering/RenderGeometryMap.h" |
#include "core/rendering/RenderLayer.h" |
#include "core/rendering/RenderTheme.h" |
@@ -347,17 +346,6 @@ void RenderInline::splitInlines(RenderBlock* fromBlock, RenderBlock* toBlock, |
RenderInline* cloneInline = clone(); |
cloneInline->setContinuation(oldCont); |
- // If we're splitting the inline containing the fullscreened element, |
- // |beforeChild| may be the renderer for the fullscreened element. However, |
- // that renderer is wrapped in a RenderFullScreen, so |this| is not its |
- // parent. Since the splitting logic expects |this| to be the parent, set |
- // |beforeChild| to be the RenderFullScreen. |
- if (FullscreenController* fullscreen = FullscreenController::fromIfExists(document())) { |
- const Element* fullScreenElement = fullscreen->webkitCurrentFullScreenElement(); |
- if (fullScreenElement && beforeChild && beforeChild->node() == fullScreenElement) |
- beforeChild = fullscreen->fullScreenRenderer(); |
- } |
- |
// Now take all of the children from beforeChild to the end and remove |
// them from |this| and place them in the clone. |
RenderObject* o = beforeChild; |