8337268: Redundant Math.ceil in StyleSheet.ListPainter#drawShape
Reviewed-by: prr, aivanov
This commit is contained in:
parent
ab27090aa0
commit
7e21d4c191
@ -2391,7 +2391,7 @@ public class StyleSheet extends StyleContext {
|
||||
// Position shape to the middle of the html text.
|
||||
int gap = isLeftToRight ? - (bulletgap + size/3) : (aw + bulletgap);
|
||||
int x = ax + gap;
|
||||
int y = Math.max(ay, ay + (int)Math.ceil(ah/2));
|
||||
int y = Math.max(ay, ay + ah/2);
|
||||
|
||||
if (type == CSS.Value.SQUARE) {
|
||||
g.drawRect(x, y, size/3, size/3);
|
||||
|
Loading…
x
Reference in New Issue
Block a user