Skip to content

Commit 349e166

Browse files
committed
cleanup code
1 parent fd6bc10 commit 349e166

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Source/HtmlRenderer/Core/Dom/CssLayoutEngine.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ public static void CreateLineBoxes(RGraphics g, CssBox blockBox)
135135
//Reminds the maximum bottom reached
136136
double maxRight = startx;
137137
double maxBottom = starty;
138-
double offset = 0;
139138

140139
//First line box
141140
CssLineBox line = new CssLineBox(blockBox);
@@ -154,7 +153,7 @@ public static void CreateLineBoxes(RGraphics g, CssBox blockBox)
154153
{
155154
ApplyHorizontalAlignment(g, linebox);
156155
ApplyRightToLeft(blockBox, linebox);
157-
BubbleRectangles(blockBox, linebox, ref offset);
156+
BubbleRectangles(blockBox, linebox);
158157
ApplyVerticalAlignment(g, linebox);
159158
linebox.AssignRectanglesToBoxes();
160159
}
@@ -388,7 +387,7 @@ private static void AdjustAbsolutePosition(CssBox box, double left, double top)
388387
/// Recursively creates the rectangles of the blockBox, by bubbling from deep to outside of the boxes
389388
/// in the rectangle structure
390389
/// </summary>
391-
private static void BubbleRectangles(CssBox box, CssLineBox line, ref double offset)
390+
private static void BubbleRectangles(CssBox box, CssLineBox line)
392391
{
393392
if (box.Words.Count > 0)
394393
{
@@ -418,7 +417,7 @@ private static void BubbleRectangles(CssBox box, CssLineBox line, ref double off
418417
{
419418
foreach (CssBox b in box.Boxes)
420419
{
421-
BubbleRectangles(b, line, ref offset);
420+
BubbleRectangles(b, line);
422421
}
423422
}
424423
}

0 commit comments

Comments
 (0)