summaryrefslogtreecommitdiff
path: root/layout/generic
diff options
context:
space:
mode:
authorJeremy Andrews <athenian200@outlook.com>2022-08-13 06:47:27 -0500
committerJeremy Andrews <athenian200@outlook.com>2022-08-13 06:47:27 -0500
commit8fa66368a0e80d7476ca1876027b31f45f22b32e (patch)
tree89462ecc68b6f30291a9f030273ad28af1bf4b46 /layout/generic
parentd3f82662f538cc06051b551ef0bee7d3c3d48e5a (diff)
downloaduxp-8fa66368a0e80d7476ca1876027b31f45f22b32e.tar.gz
Issue #1970 - Follow-up: Fix GTK3 build for SunOS and CentOS.
This seems to work for me, but I haven't tested anything else yet. Still, seems better to have a fix in the tree than to leave it as-is.
Diffstat (limited to 'layout/generic')
-rw-r--r--layout/generic/ReflowInput.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/layout/generic/ReflowInput.cpp b/layout/generic/ReflowInput.cpp
index 01f36cc9db..84fcfe119c 100644
--- a/layout/generic/ReflowInput.cpp
+++ b/layout/generic/ReflowInput.cpp
@@ -2799,9 +2799,11 @@ ComputeLineHeight(nsStyleContext* aStyleContext,
}
nscoord ReflowInput::GetLineHeight() const {
+#ifdef XP_WIN
if (mLineHeight != NS_AUTOHEIGHT) {
return mLineHeight;
}
+#endif
nscoord blockBSize =
nsLayoutUtils::IsNonWrapperBlock(mFrame) ? ComputedBSize() :