mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1219537 - Simplify a couple of PresContext() gets on nsIFrame/nsStyleContext. r=dholbert
This commit is contained in:
parent
8db9db00d2
commit
422987e613
@ -430,7 +430,7 @@ public:
|
||||
NS_DECL_QUERYFRAME_TARGET(nsIFrame)
|
||||
|
||||
nsPresContext* PresContext() const {
|
||||
return StyleContext()->RuleNode()->PresContext();
|
||||
return StyleContext()->PresContext();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -46,9 +46,7 @@ nsNativeTheme::GetPresShell(nsIFrame* aFrame)
|
||||
if (!aFrame)
|
||||
return nullptr;
|
||||
|
||||
// this is a workaround for the egcs 1.1.2 not inlining
|
||||
// aFrame->PresContext(), which causes an undefined symbol
|
||||
nsPresContext *context = aFrame->StyleContext()->RuleNode()->PresContext();
|
||||
nsPresContext* context = aFrame->PresContext();
|
||||
return context ? context->GetPresShell() : nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user