From 396af2948cbfe4493b9597f01788d28eda45628f Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Thu, 27 Jun 2019 00:24:56 +0000 Subject: [PATCH] Bug 1554571 - Part 2: Remove unused sbattr="scrollbar-thumb" from XUL thumb elements. r=emilio Differential Revision: https://phabricator.services.mozilla.com/D33122 --HG-- extra : moz-landing-system : lando --- layout/xul/nsScrollbarFrame.cpp | 15 --------------- toolkit/content/minimal-xul.css | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/layout/xul/nsScrollbarFrame.cpp b/layout/xul/nsScrollbarFrame.cpp index 4b8d5331e6a4..74ce3b5c6544 100644 --- a/layout/xul/nsScrollbarFrame.cpp +++ b/layout/xul/nsScrollbarFrame.cpp @@ -284,19 +284,6 @@ int32_t nsScrollbarFrame::MoveToNewPosition() { nsresult nsScrollbarFrame::CreateAnonymousContent( nsTArray& aElements) { - // clang-format off - - // - // - // - // - // - // - // - - // clang-format on - nsNodeInfoManager* nodeInfoManager = mContent->NodeInfo()->NodeInfoManager(); Element* el(GetContent()->AsElement()); @@ -352,8 +339,6 @@ nsresult nsScrollbarFrame::CreateAnonymousContent( getter_AddRefs(mThumb), nodeInfoManager->GetNodeInfo(nsGkAtoms::thumb, nullptr, kNameSpaceID_XUL, nsINode::ELEMENT_NODE)); - mThumb->SetAttr(kNameSpaceID_None, nsGkAtoms::sbattr, - NS_LITERAL_STRING("scrollbar-thumb"), false); mThumb->SetAttr(kNameSpaceID_None, nsGkAtoms::orient, orient, false); mThumb->SetAttr(kNameSpaceID_None, nsGkAtoms::align, NS_LITERAL_STRING("center"), false); diff --git a/toolkit/content/minimal-xul.css b/toolkit/content/minimal-xul.css index 9e1d3d9f29d2..d0e5a2681333 100644 --- a/toolkit/content/minimal-xul.css +++ b/toolkit/content/minimal-xul.css @@ -152,7 +152,7 @@ scrollbar[value="hidden"] { } @media (-moz-scrollbar-thumb-proportional) { - thumb[sbattr="scrollbar-thumb"] { + thumb { -moz-box-flex: 1; } }