changeset 9941:b3d3c425f919 jdk-9+129

8160769: [WebView] Unable to tile SVG image using css background property Reviewed-by: kcr, ghb, mbilla
author arajkumar
date Sun, 24 Jul 2016 13:40:25 +0100
parents bae80222c8da
children e4bdc06b97f4 1156622f2b9f
files modules/web/src/main/java/com/sun/javafx/webkit/prism/WCBufferedContext.java modules/web/src/main/java/com/sun/webkit/graphics/WCRenderQueue.java
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/web/src/main/java/com/sun/javafx/webkit/prism/WCBufferedContext.java	Fri Jul 22 09:17:44 2016 -0400
+++ b/modules/web/src/main/java/com/sun/javafx/webkit/prism/WCBufferedContext.java	Sun Jul 24 13:40:25 2016 +0100
@@ -210,4 +210,11 @@
             isInitialized = true;
         }
     }
+
+    @Override public void dispose() {
+        // NOP
+        // BufferedImage context is mainly used by WebKit to draw canvas and
+        // tiled SVG images and it doesn't hold complex layers. Making this
+        // method NOP helps to render tiled SVG images asynchronously.
+    }
 }
--- a/modules/web/src/main/java/com/sun/webkit/graphics/WCRenderQueue.java	Fri Jul 22 09:17:44 2016 -0400
+++ b/modules/web/src/main/java/com/sun/webkit/graphics/WCRenderQueue.java	Sun Jul 24 13:40:25 2016 +0100
@@ -91,7 +91,7 @@
                 GraphicsDecoder.decode(
                     WCGraphicsManager.getGraphicsManager(), gc, bdata);
             } catch (RuntimeException e) {
-                log.fine("Exception occurred: " + e);
+                e.printStackTrace(System.err);
             }
         }
         dispose();