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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp

Issue 1410833004: Revert "Implement FullScreen using top layer." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « third_party/WebKit/Source/core/css/fullscreen.css ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
index e5c21e31300d5397fe47a3a1b38627e1c7d2cddf..87b4b97906a2c5031739e43b21a519270a0f2433 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp
@@ -34,8 +34,6 @@
#include "core/dom/ContainerNode.h"
#include "core/dom/Document.h"
#include "core/dom/Element.h"
-#include "core/dom/Fullscreen.h"
-#include "core/frame/FrameHost.h"
#include "core/frame/FrameView.h"
#include "core/frame/Settings.h"
#include "core/frame/UseCounter.h"
@@ -46,7 +44,6 @@
#include "core/html/HTMLTextAreaElement.h"
#include "core/layout/LayoutReplaced.h"
#include "core/layout/LayoutTheme.h"
-#include "core/page/Page.h"
#include "core/style/ComputedStyle.h"
#include "core/style/ComputedStyleConstants.h"
#include "core/svg/SVGSVGElement.h"
@@ -180,17 +177,6 @@ void StyleAdjuster::adjustComputedStyle(ComputedStyle& style, const ComputedStyl
adjustStyleForFirstLetter(style);
adjustStyleForDisplay(style, parentStyle, element ? &element->document() : 0);
-
- if (element && Fullscreen::isActiveFullScreenElement(*element)) {
- // We need to size the fullscreen element to the inner viewport and not to the
- // outer viewport (what percentage would do). Unfortunately CSS can't handle
- // that as we don't expose the inner viewport information.
- //
- // TODO(dsinclair): We should find a way to get this standardized. crbug.com/534924
- IntSize viewportSize = element->document().page()->frameHost().visualViewport().size();
- style.setWidth(Length(viewportSize.width(), Fixed));
- style.setHeight(Length(viewportSize.height(), Fixed));
- }
} else {
adjustStyleForFirstLetter(style);
}
« no previous file with comments | « third_party/WebKit/Source/core/css/fullscreen.css ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698