8171898: [WebView] ScrollBarWidget thickness calculation is not correct #197
Conversation
|
/reviewers 2 |
@kevinrushforth |
While this might be the right fix, I don't think the evaluation is right. In particular, this doesn't look related to JDK-8157900. That refactoring fix was behavior neutral in terms of the object graph -- it uses an accessor pattern rather than the removed public So, what I'd like to see in the evaluation is a description of the root cause, and a brief explanation of the fix. Can you also provide a test case that fails without the fix and passes with the fix? I don't see one in JBS that you can leverage, so you may need to create one. |
This PR aims at modifying initializeThickness() to not use testSBRef and so, doesn't change the behavior of ScrollBarWidget. As it's not a bug, test case can't be created. |
If it is not a bug, then why should we fix it? |
ScrollbarThemeJava delegates scrollbar thickness calculation to ScrollBarWidget::initializeThickness() [ScrollBarWidget.java] method. Since "ScrollbarThemeJava::scrollbarThickness" is not associated with any "ScrollBarWidget" instance, some workaround was made using special "ScrollBarWidget" instance named testRef.
Progress
Issue
Download
$ git fetch https://git.openjdk.java.net/jfx pull/197/head:pull/197
$ git checkout pull/197