mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 14:54:25 +00:00
Issue #2765 - Follow-up: Avoid declaring RefPtr in the return statement
This commit is contained in:
@@ -9348,7 +9348,8 @@ nsLayoutUtils::GetNonAnonymousStyleContext(nsIFrame* aFrame)
|
||||
}
|
||||
MOZ_ASSERT(node, "Native anonymous element with no originating node?");
|
||||
if (nsIFrame* primaryFrame = node->GetPrimaryFrame()) {
|
||||
return RefPtr<nsStyleContext>(primaryFrame->StyleContext()).forget();
|
||||
RefPtr<nsStyleContext> context = primaryFrame->StyleContext();
|
||||
return context.forget();
|
||||
}
|
||||
// If the element doesn't have primary frame, get the computed style
|
||||
// from the element directly.
|
||||
|
||||
Reference in New Issue
Block a user