RFR: 8090547: Allow for transparent backgrounds in WebView [v4]

Jose Pereda jpereda at openjdk.java.net
Thu Aug 26 18:45:34 UTC 2021


On Wed, 25 Aug 2021 23:20:37 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

>> Jose Pereda has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Update cssref.html
>
> modules/javafx.graphics/src/main/java/com/sun/prism/es2/ES2Graphics.java line 70:
> 
>> 68:         context.updateCompositeMode(CompositeMode.CLEAR);
>> 69:         Paint oldPaint = getPaint();
>> 70:         setPaint(Color.TRANSPARENT); // any color will do...
> 
> Is this change necessary? If so, then the comment is probably wrong.

Yes, the change is required. As it was, when using `-fx-page-fill: transparent`, a black area is visible the first time the content is rendered (until an event triggers a new pass and clears it).

You are right, the comment is not valid anymore, as only Transparent will work after this PR. I'll remove it

-------------

PR: https://git.openjdk.java.net/jfx/pull/563


More information about the openjfx-dev mailing list