43 lines
2.2 KiB
Diff
43 lines
2.2 KiB
Diff
From 3b5a306323787c3e7b2bf33f9063e1d933527a27 Mon Sep 17 00:00:00 2001
|
|
From: Christophe Chapuis <chris.chapuis@gmail.com>
|
|
Date: Wed, 28 Oct 2015 22:14:42 +0100
|
|
Subject: [PATCH 05/10] WindowFeatures, Chrome: lower the minimum height to 5
|
|
|
|
* In case the height is expressed in GridUnits, it means it won't be possible to create a window with a height lower than 5gu.
|
|
* Chrome: lower minimum height to 5
|
|
|
|
Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
|
|
---
|
|
chromium/third_party/WebKit/Source/core/page/ChromeClient.h | 2 +-
|
|
chromium/third_party/WebKit/Source/core/page/WindowFeatures.cpp | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/3rdparty/chromium/third_party/WebKit/Source/core/page/ChromeClient.h b/src/3rdparty/chromium/third_party/WebKit/Source/core/page/ChromeClient.h
|
|
index 9ec4b22..19dce1f 100644
|
|
--- a/src/3rdparty/chromium/third_party/WebKit/Source/core/page/ChromeClient.h
|
|
+++ b/src/3rdparty/chromium/third_party/WebKit/Source/core/page/ChromeClient.h
|
|
@@ -288,7 +288,7 @@ class CORE_EXPORT ChromeClient : public HostWindow {
|
|
virtual bool requestPointerLock(LocalFrame*) { return false; }
|
|
virtual void requestPointerUnlock(LocalFrame*) {}
|
|
|
|
- virtual IntSize minimumWindowSize() const { return IntSize(100, 100); }
|
|
+ virtual IntSize minimumWindowSize() const { return IntSize(100, 5); }
|
|
|
|
virtual bool isChromeClientImpl() const { return false; }
|
|
|
|
diff --git a/src/3rdparty/chromium/third_party/WebKit/Source/core/page/WindowFeatures.cpp b/src/3rdparty/chromium/third_party/WebKit/Source/core/page/WindowFeatures.cpp
|
|
index 82614af..7ede5b6 100644
|
|
--- a/src/3rdparty/chromium/third_party/WebKit/Source/core/page/WindowFeatures.cpp
|
|
+++ b/src/3rdparty/chromium/third_party/WebKit/Source/core/page/WindowFeatures.cpp
|
|
@@ -220,7 +220,7 @@ WindowFeatures::WindowFeatures(const String& dialogFeaturesString,
|
|
width = intFeature(features, "dialogwidth", 100, screenAvailableRect.width(),
|
|
620);
|
|
// default here came from frame size of dialog in MacIE
|
|
- height = intFeature(features, "dialogheight", 100,
|
|
+ height = intFeature(features, "dialogheight", 5,
|
|
screenAvailableRect.height(), 450);
|
|
|
|
x = intFeature(features, "dialogleft", screenAvailableRect.x(),
|
|
--
|
|
2.7.4
|
|
|