Bug 1554571 - Part 1: Remove unused argument from Servo_ResolveStyle. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D33121
This commit is contained in:
Cameron McCormack
2019-06-27 00:24:54 +00:00
parent f3d90ab94f
commit d883ec22a0
9 changed files with 18 additions and 23 deletions

View File

@@ -10044,12 +10044,12 @@ ComputedStyle* nsLayoutUtils::StyleForScrollbar(nsIFrame* aScrollbarPart) {
// from the element directly. This can happen on viewport, because
// the scrollbar of viewport may be shown when the root element has
// > display: none; overflow: scroll;
nsPresContext* pc = aScrollbarPart->PresContext();
MOZ_ASSERT(content == pc->Document()->GetRootElement(),
"Root element is the only case for this fallback "
"path to be triggered");
MOZ_ASSERT(
content == aScrollbarPart->PresContext()->Document()->GetRootElement(),
"Root element is the only case for this fallback "
"path to be triggered");
RefPtr<ComputedStyle> style =
pc->StyleSet()->ResolveServoStyle(*content->AsElement());
ServoStyleSet::ResolveServoStyle(*content->AsElement());
// Dropping the strong reference is fine because the style should be
// held strongly by the element.
return style.get();