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

Unified Diff: Source/core/layout/LayoutFullScreen.cpp

Issue 1025543002: Remove old pinch-zoom paths from Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 9 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 | « Source/core/layout/LayoutBox.cpp ('k') | Source/core/layout/TextAutosizer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutFullScreen.cpp
diff --git a/Source/core/layout/LayoutFullScreen.cpp b/Source/core/layout/LayoutFullScreen.cpp
index f05f0f0d285eb291e86c65a7a230d8aa0e4b16d6..0cbf8fbc0f98f6d785004448724ad3f118c8ac46 100644
--- a/Source/core/layout/LayoutFullScreen.cpp
+++ b/Source/core/layout/LayoutFullScreen.cpp
@@ -106,14 +106,9 @@ void LayoutFullScreen::updateStyle()
fullscreenStyle->setPosition(FixedPosition);
fullscreenStyle->setLeft(Length(0, blink::Fixed));
fullscreenStyle->setTop(Length(0, blink::Fixed));
- if (document().page()->settings().pinchVirtualViewportEnabled()) {
- IntSize viewportSize = document().page()->frameHost().pinchViewport().size();
- fullscreenStyle->setWidth(Length(viewportSize.width(), blink::Fixed));
- fullscreenStyle->setHeight(Length(viewportSize.height(), blink::Fixed));
- } else {
- fullscreenStyle->setWidth(Length(100.0, Percent));
- fullscreenStyle->setHeight(Length(100.0, Percent));
- }
+ IntSize viewportSize = document().page()->frameHost().pinchViewport().size();
+ fullscreenStyle->setWidth(Length(viewportSize.width(), blink::Fixed));
+ fullscreenStyle->setHeight(Length(viewportSize.height(), blink::Fixed));
fullscreenStyle->setBackgroundColor(StyleColor(Color::black));
« no previous file with comments | « Source/core/layout/LayoutBox.cpp ('k') | Source/core/layout/TextAutosizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698