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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutInline.cpp

Issue 2202493002: NOT FOR REVIEW: Fullscreen WIP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 1 month 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: third_party/WebKit/Source/core/layout/LayoutInline.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutInline.cpp b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
index 0d12a673395dcd43c5503c5373bd9e0b63a24f96..7f4983365f4a9c606adc785b9731d3fe1b7d5b31 100644
--- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
@@ -23,11 +23,9 @@
#include "core/layout/LayoutInline.h"
-#include "core/dom/Fullscreen.h"
#include "core/dom/StyleEngine.h"
#include "core/layout/HitTestResult.h"
#include "core/layout/LayoutBlock.h"
-#include "core/layout/LayoutFullScreen.h"
#include "core/layout/LayoutGeometryMap.h"
#include "core/layout/LayoutTheme.h"
#include "core/layout/LayoutView.h"
@@ -396,18 +394,6 @@ void LayoutInline::splitInlines(LayoutBlockFlow* fromBlock,
LayoutBoxModelObject* oldCont) {
ASSERT(isDescendantOf(fromBlock));
- // If we're splitting the inline containing the fullscreened element,
- // |beforeChild| may be the layoutObject for the fullscreened element.
- // However, that layoutObject is wrapped in a LayoutFullScreen, so |this| is
- // not its parent. Since the splitting logic expects |this| to be the parent,
- // set |beforeChild| to be the LayoutFullScreen.
- if (Fullscreen* fullscreen = Fullscreen::fromIfExists(document())) {
- const Element* fullScreenElement = fullscreen->currentFullScreenElement();
- if (fullScreenElement && beforeChild &&
- beforeChild->node() == fullScreenElement)
- beforeChild = fullscreen->fullScreenLayoutObject();
- }
-
// FIXME: Because splitting is O(n^2) as tags nest pathologically, we cap the
// depth at which we're willing to clone.
// There will eventually be a better approach to this problem that will let us
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutFullScreen.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutMenuList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698