File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
main/native/Source/WebCore/platform/graphics/java
test/java/test/javafx/scene/web Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -1029,7 +1029,7 @@ void GraphicsContextJava::didUpdateState(GraphicsContextState& state)
1029
1029
float clr = 0 .0f ;
1030
1030
platformContext ()->rq ().freeSpace (32 )
1031
1031
<< (jint)com_sun_webkit_graphics_GraphicsDecoder_SETSHADOW
1032
- << clr << clr << clr << clr << clr << clr << clr;;
1032
+ << clr << clr << clr << clr << clr << clr << clr;
1033
1033
}
1034
1034
}
1035
1035
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2023 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2024 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
30
30
import javafx .scene .web .WebEngineShim ;
31
31
import org .junit .Test ;
32
32
33
- import javax .imageio .ImageIO ;
34
33
import java .awt .Color ;
35
34
import java .awt .image .BufferedImage ;
36
- import java .io .File ;
37
- import java .io .IOException ;
38
35
39
36
import static org .junit .Assert .assertNotNull ;
40
37
import static org .junit .Assert .assertTrue ;
@@ -62,11 +59,11 @@ public class ShadowTest extends TestBase {
62
59
63
60
int redShadowCnt = 0 ;
64
61
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 ++) {
67
64
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 ) {
70
67
redShadowCnt ++;
71
68
} else {
72
69
noShadowCnt ++;
You can’t perform that action at this time.
0 commit comments