[RFR] JDK-8208622: [WebView] IllegalStateException when invoking print API with html form controls
arunprasad.rajkumar at oracle.com
Thu Aug 2 13:06:21 UTC 2018
Please review the fix for following bug,
`RenderThemeJava` instance is associated with form controls rendering in `WebPage::prePaint` and disassociated in `WebPage::postPaint`. However, when printing is invoked, `WebPage.print` directly invokes `WebPage::paint` without invoking `WebPage::prePaint`, which causes the exception because there is no valid `RenderThemeJava` instance is available to render form controls.
Associate java `RenderTheme` instance with `PlatformContextJava` and make use of it while rendering FormControls. This solution also eliminates global state.
More information about the openjfx-dev