[jfx17u] RFR: 8280020: Underline and line-through not straight in WebView

2022-04-29 Thread Ambarish Rapte
Reviewed-by: kcr, arapte - Commit messages: - 8280020: Underline and line-through not straight in WebView Changes: https://git.openjdk.java.net/jfx17u/pull/47/files Webrev: https://webrevs.openjdk.java.net/?repo=jfx17u&pr=47&range=00 Issue: https://bugs.openjdk.java.net/browse/JD

[jfx11u] RFR: 8280020: Underline and line-through not straight in WebView

2022-04-28 Thread Ambarish Rapte
Reviewed-by: kcr, arapte - Commit messages: - 8280020: Underline and line-through not straight in WebView Changes: https://git.openjdk.java.net/jfx11u/pull/90/files Webrev: https://webrevs.openjdk.java.net/?repo=jfx11u&pr=90&range=00 Issue: https://bugs.openjdk.java.net/browse/JD

Re: RFR: 8280020: Underline and line-through not straight in WebView [v8]

2022-03-07 Thread Kevin Rushforth
On Mon, 7 Mar 2022 09:28:52 GMT, Jay Bhaskar wrote: >> Issue: The end point of line in drawLinesForText , add thickness to the >> endPoint.y(). In this case origin which is start point and the end point >> would not be same, and line would be drawn not straight. >> Solution: Do not add thickne

Re: RFR: 8280020: Underline and line-through not straight in WebView [v8]

2022-03-07 Thread Ambarish Rapte
On Mon, 7 Mar 2022 09:28:52 GMT, Jay Bhaskar wrote: >> Issue: The end point of line in drawLinesForText , add thickness to the >> endPoint.y(). In this case origin which is start point and the end point >> would not be same, and line would be drawn not straight. >> Solution: Do not add thickne

Re: RFR: 8280020: Underline and line-through not straight in WebView [v8]

2022-03-07 Thread Jay Bhaskar
> Issue: The end point of line in drawLinesForText , add thickness to the > endPoint.y(). In this case origin which is start point and the end point > would not be same, and line would be drawn not straight. > Solution: Do not add thickness to the y position of end point of line. > Start Point(x

Re: RFR: 8280020: Underline and line-through not straight in WebView [v7]

2022-03-04 Thread Kevin Rushforth
On Fri, 4 Mar 2022 03:29:33 GMT, Jay Bhaskar wrote: >> Issue: The end point of line in drawLinesForText , add thickness to the >> endPoint.y(). In this case origin which is start point and the end point >> would not be same, and line would be drawn not straight. >> Solution: Do not add thickne

Re: RFR: 8280020: Underline and line-through not straight in WebView [v7]

2022-03-03 Thread Jay Bhaskar
> Issue: The end point of line in drawLinesForText , add thickness to the > endPoint.y(). In this case origin which is start point and the end point > would not be same, and line would be drawn not straight. > Solution: Do not add thickness to the y position of end point of line. > Start Point(x

Re: RFR: 8280020: Underline and line-through not straight in WebView [v3]

2022-03-02 Thread Kevin Rushforth
On Mon, 21 Feb 2022 02:41:13 GMT, Jay Bhaskar wrote: >> tests/system/src/test/java/test/javafx/scene/web/StraightLineTest.java line >> 75: >> >>> 73: this.primaryStage = primaryStage; >>> 74: this.primaryStage.setWidth(80); >>> 75: this.primaryStage.setHeight

Re: RFR: 8280020: Underline and line-through not straight in WebView [v6]

2022-03-02 Thread Kevin Rushforth
On Tue, 1 Mar 2022 03:24:57 GMT, Jay Bhaskar wrote: >> Issue: The end point of line in drawLinesForText , add thickness to the >> endPoint.y(). In this case origin which is start point and the end point >> would not be same, and line would be drawn not straight. >> Solution: Do not add thickne

Re: RFR: 8280020: Underline and line-through not straight in WebView [v6]

2022-02-28 Thread Jay Bhaskar
> Issue: The end point of line in drawLinesForText , add thickness to the > endPoint.y(). In this case origin which is start point and the end point > would not be same, and line would be drawn not straight. > Solution: Do not add thickness to the y position of end point of line. > Start Point(x

Re: RFR: 8280020: Underline and line-through not straight in WebView [v5]

2022-02-28 Thread Jay Bhaskar
On Mon, 28 Feb 2022 15:12:37 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> New chnages for line test > > tests/system/src/test/java/test/javafx/scene/web/StraightLineTest.java line > 168: >

Re: RFR: 8280020: Underline and line-through not straight in WebView [v5]

2022-02-28 Thread Jay Bhaskar
On Mon, 28 Feb 2022 15:10:27 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> New chnages for line test > > tests/system/src/test/java/test/javafx/scene/web/StraightLineTest.java line > 57: > >

Re: RFR: 8280020: Underline and line-through not straight in WebView [v5]

2022-02-28 Thread Kevin Rushforth
On Sun, 27 Feb 2022 07:10:25 GMT, Jay Bhaskar wrote: >> Issue: The end point of line in drawLinesForText , add thickness to the >> endPoint.y(). In this case origin which is start point and the end point >> would not be same, and line would be drawn not straight. >> Solution: Do not add thickn

Re: RFR: 8280020: Underline and line-through not straight in WebView [v5]

2022-02-26 Thread Jay Bhaskar
> Issue: The end point of line in drawLinesForText , add thickness to the > endPoint.y(). In this case origin which is start point and the end point > would not be same, and line would be drawn not straight. > Solution: Do not add thickness to the y position of end point of line. > Start Point(x

Re: RFR: 8280020: Underline and line-through not straight in WebView [v4]

2022-02-22 Thread Kevin Rushforth
On Mon, 21 Feb 2022 06:02:32 GMT, Jay Bhaskar wrote: >> Issue: The end point of line in drawLinesForText , add thickness to the >> endPoint.y(). In this case origin which is start point and the end point >> would not be same, and line would be drawn not straight. >> Solution: Do not add thickn

Re: RFR: 8280020: Underline and line-through not straight in WebView [v3]

2022-02-22 Thread Kevin Rushforth
On Mon, 21 Feb 2022 01:57:29 GMT, Jay Bhaskar wrote: >> tests/system/src/test/java/test/javafx/scene/web/StraightLineTest.java line >> 105: >> >>> 103: Platform.runLater(() -> { >>> 104: webView = new WebView(); >>> 105: Scene scene = new Scene(webView,80,60); >>

Re: RFR: 8280020: Underline and line-through not straight in WebView [v3]

2022-02-22 Thread Kevin Rushforth
On Mon, 21 Feb 2022 05:30:36 GMT, Jay Bhaskar wrote: >> The bounding rect.x rect.y is top left corner, and line is being drawn below >> the bottom, so height and thickness need to be considered. > > for (int i = line_start_y; i <= (width - line_start_y -6); i++) { , this > meets the condition o

Re: RFR: 8280020: Underline and line-through not straight in WebView [v4]

2022-02-20 Thread Jay Bhaskar
> Issue: The end point of line in drawLinesForText , add thickness to the > endPoint.y(). In this case origin which is start point and the end point > would not be same, and line would be drawn not straight. > Solution: Do not add thickness to the y position of end point of line. > Start Point(x

Re: RFR: 8280020: Underline and line-through not straight in WebView [v3]

2022-02-20 Thread Jay Bhaskar
On Sat, 19 Feb 2022 15:03:38 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update test case for line straightness check > > tests/system/src/test/java/test/javafx/scene/web/StraightLineTest.ja

Re: RFR: 8280020: Underline and line-through not straight in WebView [v3]

2022-02-20 Thread Jay Bhaskar
On Mon, 21 Feb 2022 04:19:29 GMT, Jay Bhaskar wrote: >> tests/system/src/test/java/test/javafx/scene/web/StraightLineTest.java line >> 163: >> >>> 161: >>> 162: // buttom start x position of underline ( startx + font >>> size + thickness -1) >>> 163: int line_start_x =

Re: RFR: 8280020: Underline and line-through not straight in WebView [v3]

2022-02-20 Thread Jay Bhaskar
On Sat, 19 Feb 2022 14:55:30 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update test case for line straightness check > > tests/system/src/test/java/test/javafx/scene/web/StraightLineTest.ja

Re: RFR: 8280020: Underline and line-through not straight in WebView [v3]

2022-02-20 Thread Jay Bhaskar
On Sat, 19 Feb 2022 14:45:53 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update test case for line straightness check > > tests/system/src/test/java/test/javafx/scene/web/StraightLineTest.ja

Re: RFR: 8280020: Underline and line-through not straight in WebView [v3]

2022-02-20 Thread Jay Bhaskar
On Sat, 19 Feb 2022 16:51:52 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update test case for line straightness check > > tests/system/src/test/java/test/javafx/scene/web/StraightLineTest.ja

Re: RFR: 8280020: Underline and line-through not straight in WebView [v3]

2022-02-20 Thread Jay Bhaskar
On Sat, 19 Feb 2022 14:32:46 GMT, Kevin Rushforth wrote: >> Jay Bhaskar has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update test case for line straightness check > > tests/system/src/test/java/test/javafx/scene/web/StraightLineTest.ja

Re: RFR: 8280020: Underline and line-through not straight in WebView [v3]

2022-02-19 Thread Kevin Rushforth
On Sat, 19 Feb 2022 03:52:41 GMT, Jay Bhaskar wrote: >> Issue: The end point of line in drawLinesForText , add thickness to the >> endPoint.y(). In this case origin which is start point and the end point >> would not be same, and line would be drawn not straight. >> Solution: Do not add thickn

Re: RFR: 8280020: Underline and line-through not straight in WebView [v2]

2022-02-18 Thread Jay Bhaskar
On Sun, 13 Feb 2022 07:35:32 GMT, Jay Bhaskar wrote: >> Issue: The end point of line in drawLinesForText , add thickness to the >> endPoint.y(). In this case origin which is start point and the end point >> would not be same, and line would be drawn not straight. >> Solution: Do not add thickn

Re: RFR: 8280020: Underline and line-through not straight in WebView [v3]

2022-02-18 Thread Jay Bhaskar
> Issue: The end point of line in drawLinesForText , add thickness to the > endPoint.y(). In this case origin which is start point and the end point > would not be same, and line would be drawn not straight. > Solution: Do not add thickness to the y position of end point of line. > Start Point(x

Re: RFR: 8280020: Underline and line-through not straight in WebView [v2]

2022-02-14 Thread Kevin Rushforth
On Sun, 13 Feb 2022 07:35:32 GMT, Jay Bhaskar wrote: >> Issue: The end point of line in drawLinesForText , add thickness to the >> endPoint.y(). In this case origin which is start point and the end point >> would not be same, and line would be drawn not straight. >> Solution: Do not add thickn

Re: RFR: 8280020: Underline and line-through not straight in WebView [v2]

2022-02-12 Thread Jay Bhaskar
On Sun, 13 Feb 2022 07:35:32 GMT, Jay Bhaskar wrote: >> Issue: The end point of line in drawLinesForText , add thickness to the >> endPoint.y(). In this case origin which is start point and the end point >> would not be same, and line would be drawn not straight. >> Solution: Do not add thickn

Re: RFR: 8280020: Underline and line-through not straight in WebView [v2]

2022-02-12 Thread Jay Bhaskar
> Issue: The end point of line in drawLinesForText , add thickness to the > endPoint.y(). In this case origin which is start point and the end point > would not be same, and line would be drawn not straight. > Solution: Do not add thickness to the y position of end point of line. > Start Point(x

Re: RFR: 8280020: Underline and line-through not straight in WebView

2022-02-12 Thread Jay Bhaskar
On Thu, 10 Feb 2022 11:36:38 GMT, Jay Bhaskar wrote: > Issue: The end point of line in drawLinesForText , add thickness to the > endPoint.y(). In this case origin which is start point and the end point > would not be same, and line would be drawn not straight. > Solution: Do not add thickness

Re: RFR: 8280020: Underline and line-through not straight in WebView

2022-02-12 Thread Kevin Rushforth
On Thu, 10 Feb 2022 11:36:38 GMT, Jay Bhaskar wrote: > Issue: The end point of line in drawLinesForText , add thickness to the > endPoint.y(). In this case origin which is start point and the end point > would not be same, and line would be drawn not straight. > Solution: Do not add thickness

Re: RFR: 8280020: Underline and line-through not straight in WebView

2022-02-12 Thread Kevin Rushforth
On Thu, 10 Feb 2022 11:36:38 GMT, Jay Bhaskar wrote: > Issue: The end point of line in drawLinesForText , add thickness to the > endPoint.y(). In this case origin which is start point and the end point > would not be same, and line would be drawn not straight. > Solution: Do not add thickness

Re: RFR: 8280020: Underline and line-through not straight in WebView

2022-02-11 Thread yosbits
On Thu, 10 Feb 2022 11:36:38 GMT, Jay Bhaskar wrote: > Issue: The end point of line in drawLinesForText , add thickness to the > endPoint.y(). In this case origin which is start point and the end point > would not be same, and line would be drawn not straight. > Solution: Do not add thickness

Re: RFR: 8280020: Underline and line-through not straight in WebView

2022-02-11 Thread Kevin Rushforth
On Sat, 12 Feb 2022 01:00:46 GMT, Kevin Rushforth wrote: > 2. The text is always drawn as a thin line... That should be "the text _underline or line-through_ is always drawn as a thin line...". - PR: https://git.openjdk.java.net/jfx/pull/731

Re: RFR: 8280020: Underline and line-through not straight in WebView

2022-02-11 Thread Kevin Rushforth
On Thu, 10 Feb 2022 11:36:38 GMT, Jay Bhaskar wrote: > Issue: The end point of line in drawLinesForText , add thickness to the > endPoint.y(). In this case origin which is start point and the end point > would not be same, and line would be drawn not straight. > Solution: Do not add thickness

Re: RFR: 8280020: Underline and line-through not straight in WebView

2022-02-11 Thread yosbits
On Thu, 10 Feb 2022 11:36:38 GMT, Jay Bhaskar wrote: > Issue: The end point of line in drawLinesForText , add thickness to the > endPoint.y(). In this case origin which is start point and the end point > would not be same, and line would be drawn not straight. > Solution: Do not add thickness

Re: RFR: 8280020: Underline and line-through not straight in WebView

2022-02-11 Thread Jay Bhaskar
On Thu, 10 Feb 2022 11:36:38 GMT, Jay Bhaskar wrote: > Issue: The end point of line in drawLinesForText , add thickness to the > endPoint.y(). In this case origin which is start point and the end point > would not be same, and line would be drawn not straight. > Solution: Do not add thickness

Re: RFR: 8280020: Underline and line-through not straight in WebView

2022-02-11 Thread yosbits
On Thu, 10 Feb 2022 11:36:38 GMT, Jay Bhaskar wrote: > Issue: The end point of line in drawLinesForText , add thickness to the > endPoint.y(). In this case origin which is start point and the end point > would not be same, and line would be drawn not straight. > Solution: Do not add thickness

Re: RFR: 8280020: Underline and line-through not straight in WebView

2022-02-11 Thread Jay Bhaskar
On Thu, 10 Feb 2022 11:36:38 GMT, Jay Bhaskar wrote: > Issue: The end point of line in drawLinesForText , add thickness to the > endPoint.y(). In this case origin which is start point and the end point > would not be same, and line would be drawn not straight. > Solution: Do not add thickness

Re: RFR: 8280020: Underline and line-through not straight in WebView

2022-02-10 Thread Kevin Rushforth
On Thu, 10 Feb 2022 11:36:38 GMT, Jay Bhaskar wrote: > Issue: The end point of line in drawLinesForText , add thickness to the > endPoint.y(). In this case origin which is start point and the end point > would not be same, and line would be drawn not straight. > Solution: Do not add thickness

RFR: 8280020: Underline and line-through not straight in WebView

2022-02-10 Thread Jay Bhaskar
Issue: The end point of line in drawLinesForText , add thickness to the endPoint.y(). In this case origin which is start point and the end point would not be same, and line would be drawn not straight. Solution: Do not add thickness to the y position of end point of line. Start Point(x,y) --