summaryrefslogtreecommitdiffstats
path: root/widget/ScreenManager.cpp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
commitda4c7e7ed675c3bf405668739c3012d140856109 (patch)
treecdd868dba063fecba609a1d819de271f0d51b23e /widget/ScreenManager.cpp
parentAdding upstream version 125.0.3. (diff)
downloadfirefox-da4c7e7ed675c3bf405668739c3012d140856109.tar.xz
firefox-da4c7e7ed675c3bf405668739c3012d140856109.zip
Adding upstream version 126.0.upstream/126.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'widget/ScreenManager.cpp')
-rw-r--r--widget/ScreenManager.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/widget/ScreenManager.cpp b/widget/ScreenManager.cpp
index 58e20806eb..84d7316af7 100644
--- a/widget/ScreenManager.cpp
+++ b/widget/ScreenManager.cpp
@@ -139,7 +139,8 @@ already_AddRefed<Screen> ScreenManager::ScreenForRect(
auto screen = MakeRefPtr<Screen>(
LayoutDeviceIntRect(), LayoutDeviceIntRect(), 0, 0, 0,
DesktopToLayoutDeviceScale(), CSSToLayoutDeviceScale(), 96 /* dpi */,
- Screen::IsPseudoDisplay::No, hal::ScreenOrientation::None, 0);
+ Screen::IsPseudoDisplay::No, Screen::IsHDR::No,
+ hal::ScreenOrientation::None, 0);
return screen.forget();
}
@@ -219,10 +220,11 @@ already_AddRefed<Screen> ScreenManager::GetPrimaryScreen() {
if (mScreenList.IsEmpty()) {
MOZ_LOG(sScreenLog, LogLevel::Warning,
("No screen available. This can happen in xpcshell."));
- return MakeAndAddRef<Screen>(
- LayoutDeviceIntRect(), LayoutDeviceIntRect(), 0, 0, 0,
- DesktopToLayoutDeviceScale(), CSSToLayoutDeviceScale(), 96 /* dpi */,
- Screen::IsPseudoDisplay::No, hal::ScreenOrientation::None, 0);
+ return MakeAndAddRef<Screen>(LayoutDeviceIntRect(), LayoutDeviceIntRect(),
+ 0, 0, 0, DesktopToLayoutDeviceScale(),
+ CSSToLayoutDeviceScale(), 96 /* dpi */,
+ Screen::IsPseudoDisplay::No, Screen::IsHDR::No,
+ hal::ScreenOrientation::None, 0);
}
return do_AddRef(mScreenList[0]);