summaryrefslogtreecommitdiff
path: root/layout/generic/TextOverflow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layout/generic/TextOverflow.cpp')
-rw-r--r--layout/generic/TextOverflow.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/layout/generic/TextOverflow.cpp b/layout/generic/TextOverflow.cpp
index 3d78eaf911..d4d5b04afb 100644
--- a/layout/generic/TextOverflow.cpp
+++ b/layout/generic/TextOverflow.cpp
@@ -288,7 +288,6 @@ TextOverflow::TextOverflow(nsDisplayListBuilder* aBuilder,
, mBlockWM(aBlockFrame->GetWritingMode())
, mAdjustForPixelSnapping(false)
{
-#ifdef MOZ_XUL
if (!mScrollableFrame) {
nsIAtom* pseudoType = aBlockFrame->StyleContext()->GetPseudo();
if (pseudoType == nsCSSAnonBoxes::mozXULAnonymousBlock) {
@@ -301,7 +300,7 @@ TextOverflow::TextOverflow(nsDisplayListBuilder* aBuilder,
mAdjustForPixelSnapping = !mBlockWM.IsBidiLTR();
}
}
-#endif
+
mCanHaveInlineAxisScrollbar = false;
if (mScrollableFrame) {
auto scrollbarStyle = mBlockWM.IsVertical() ?