mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 22:38:41 +09:00
Issue #2765 - Follow-up: Avoid declaring RefPtr in the return statement
This commit is contained in:
parent
6e358f1039
commit
e4630ce481
1 changed files with 2 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue