Commit 78dafd3e authored by Charlie Marlow's avatar Charlie Marlow
Browse files

Bug 1573218: fix scaling for padding between decoration lines and descenders in skip-ink r=jfkthame

Differential Revision: https://phabricator.services.mozilla.com/D41615

--HG--
extra : moz-landing-system : lando
parent 693746ef
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3937,7 +3937,9 @@ static void SkipInk(nsIFrame* aFrame, DrawTarget& aDrawTarget,
                    const nsCSSRendering::PaintDecorationLineParams& aParams,
                    const nsTArray<SkScalar>& aIntercepts, Rect& aRect) {
  nsCSSRendering::PaintDecorationLineParams clipParams = aParams;
  double padding = 2.0 * aParams.lineSize.height;
  double padding = aParams.lineSize.height;
  double oneCSSPixel = aFrame->PresContext()->CSSPixelsToDevPixels(1.0f);
  padding = std::max(padding, oneCSSPixel);
  int length = aIntercepts.Length();

  SkScalar startIntercept = 0;