Bug 1135913, part 1 - Simplify nsCSSRendering::DecorationLineToPath to not require a context. r=heycam

This commit is contained in:
Jonathan Watt
2015-02-03 14:34:14 +00:00
parent dc805bc148
commit 88f6fa366d
3 changed files with 37 additions and 41 deletions

View File

@@ -5234,9 +5234,11 @@ PaintDecorationLine(nsIFrame* aFrame,
} else {
aCallbacks->NotifyBeforeSelectionDecorationLine(lineColor);
}
nsCSSRendering::DecorationLineToPath(aFrame, aCtx, aDirtyRect, lineColor,
aPt, aICoordInFrame, aLineSize, aAscent, aOffset, aDecoration, aStyle,
Rect path = nsCSSRendering::DecorationLineToPath(ToRect(aDirtyRect),
ToPoint(aPt), ToSize(aLineSize), aAscent, aOffset, aDecoration, aStyle,
aVertical, aDescentLimit);
aCtx->NewPath();
aCtx->Rectangle(ThebesRect(path));
if (aDecorationType == eNormalDecoration) {
aCallbacks->NotifyDecorationLinePathEmitted();
} else {