mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1219537 - Simplify a couple of PresContext() gets on nsIFrame/nsStyleContext. r=dholbert
This commit is contained in:
parent
68f702f40a
commit
5a9f585bc7
@ -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