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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user