diff --git a/layout/generic/nsTextFrame.cpp b/layout/generic/nsTextFrame.cpp index c74cfdc2feea..70c1ac959bae 100644 --- a/layout/generic/nsTextFrame.cpp +++ b/layout/generic/nsTextFrame.cpp @@ -5526,7 +5526,7 @@ nsTextFrame::UpdateTextEmphasis(WritingMode aWM, PropertyProvider& aProvider) nsStyleContext* styleContext = StyleContext(); bool isTextCombined = styleContext->IsTextCombined(); if (isTextCombined) { - styleContext = styleContext->GetParent(); + styleContext = GetParent()->StyleContext(); } RefPtr fm = nsLayoutUtils:: GetFontMetricsOfEmphasisMarks(styleContext, GetFontSizeInflation());