Commit 98c9000c authored by Andrew Osmond's avatar Andrew Osmond
Browse files

Bug 1782947 - Check for null pres context in...

Bug 1782947 - Check for null pres context in nsLayoutUtils::GetTextRunFlagsForStyle. r=jfkthame, a=dsmith

Differential Revision: https://phabricator.services.mozilla.com/D153583
parent 2f2412e1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -6945,7 +6945,7 @@ nsIFrame* nsLayoutUtils::GetReferenceFrame(nsIFrame* aFrame) {
      result |= gfx::ShapedTextFlags::TEXT_OPTIMIZE_SPEED;
      break;
    case StyleTextRendering::Auto:
      if (aStyleFont->mFont.size.ToCSSPixels() <
      if (aPresContext && aStyleFont->mFont.size.ToCSSPixels() <
                              aPresContext->GetAutoQualityMinFontSize()) {
        result |= gfx::ShapedTextFlags::TEXT_OPTIMIZE_SPEED;
      }