Bug 1452080: Remove ComputedStyle::PresContext usage from layout and canvas code. r=xidorn
Couldn't find an easy way of splitting these up :( MozReview-Commit-ID: 2kTZ5McREUT
This commit is contained in:
@@ -530,8 +530,11 @@ nsBlockFrame::GetCaretBaseline() const
|
||||
RefPtr<nsFontMetrics> fm =
|
||||
nsLayoutUtils::GetFontMetricsForFrame(this, inflation);
|
||||
nscoord lineHeight =
|
||||
ReflowInput::CalcLineHeight(GetContent(), Style(),
|
||||
contentRect.height, inflation);
|
||||
ReflowInput::CalcLineHeight(GetContent(),
|
||||
Style(),
|
||||
PresContext(),
|
||||
contentRect.height,
|
||||
inflation);
|
||||
const WritingMode wm = GetWritingMode();
|
||||
return nsLayoutUtils::GetCenteredFontBaseline(fm, lineHeight,
|
||||
wm.IsLineInverted()) + bp.top;
|
||||
|
||||
Reference in New Issue
Block a user