changeset 8396:b90398073b6a 8u40-b13

RT-38861: Rendering is disturbed by mouseover or focus move checkbox and radio of WebView
author ant <anton.tarasov@oracle.com>
date Sat, 01 Nov 2014 22:54:08 +0300
parents fca665a22510
children 3bcb55ac0869 054dfc11231e b9da2d0f2b20
files modules/web/src/main/java/com/sun/javafx/webkit/theme/RenderThemeImpl.java
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/web/src/main/java/com/sun/javafx/webkit/theme/RenderThemeImpl.java	Fri Oct 31 20:15:56 2014 -0700
+++ b/modules/web/src/main/java/com/sun/javafx/webkit/theme/RenderThemeImpl.java	Sat Nov 01 22:54:08 2014 +0300
@@ -57,6 +57,7 @@
 import com.sun.webkit.graphics.Ref;
 import com.sun.webkit.graphics.RenderTheme;
 import com.sun.webkit.graphics.WCGraphicsContext;
+import javafx.application.Application;
 
 public final class RenderThemeImpl extends RenderTheme {
     private final static Logger log = Logger.getLogger(RenderThemeImpl.class.getName());
@@ -364,10 +365,15 @@
         }
     }
 
-    // TODO: get theme value
     @Override
     protected int getRadioButtonSize() {
-        return 15;
+        String style = Application.getUserAgentStylesheet();
+        if (Application.STYLESHEET_MODENA.equalsIgnoreCase(style)) {
+            return 20; // 18 + 2; size + focus outline
+        } else if (Application.STYLESHEET_CASPIAN.equalsIgnoreCase(style)) {
+            return 19; // 16 + 3; size + focus outline
+        }
+        return 20;
     }
 
     // TODO: get theme value