Skip to content

Commit 831aa44

Browse files
committed
Requested changes from review
1 parent c0e4adc commit 831aa44

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

modules/javafx.web/src/main/native/Source/WebCore/platform/graphics/java/GraphicsContextJava.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ void GraphicsContextJava::didUpdateState(GraphicsContextState& state)
10291029
float clr = 0.0f;
10301030
platformContext()->rq().freeSpace(32)
10311031
<< (jint)com_sun_webkit_graphics_GraphicsDecoder_SETSHADOW
1032-
<< clr << clr << clr << clr << clr << clr << clr;;
1032+
<< clr << clr << clr << clr << clr << clr << clr;
10331033
}
10341034
}
10351035

modules/javafx.web/src/test/java/test/javafx/scene/web/ShadowTest.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -30,11 +30,8 @@
3030
import javafx.scene.web.WebEngineShim;
3131
import org.junit.Test;
3232

33-
import javax.imageio.ImageIO;
3433
import java.awt.Color;
3534
import java.awt.image.BufferedImage;
36-
import java.io.File;
37-
import java.io.IOException;
3835

3936
import static org.junit.Assert.assertNotNull;
4037
import static org.junit.Assert.assertTrue;
@@ -62,11 +59,11 @@ public class ShadowTest extends TestBase {
6259

6360
int redShadowCnt = 0;
6461
int noShadowCnt = 0;
65-
for(int x = 0; x < 100; x++){
66-
for(int y = 0; y < 200; y++){
62+
for (int x = 0; x < 100; x++) {
63+
for (int y = 0; y < 200; y++) {
6764
Color pixelColor = new Color(img.getRGB(x, y), true);
68-
if(isColorsSimilar(Color.RED, pixelColor, 1)){
69-
if(y < 100){
65+
if (isColorsSimilar(Color.RED, pixelColor, 1)) {
66+
if (y < 100) {
7067
redShadowCnt++;
7168
} else {
7269
noShadowCnt++;

0 commit comments

Comments
 (0)