src/java.desktop/share/classes/javax/swing/text/html/ImageView.java
changeset 49295 8d8f74e84ff6
parent 47216 71c04702a3d5
child 51067 0961485fc686
equal deleted inserted replaced
49236:9552f0648b53 49295:8d8f74e84ff6
   926                       getAttributes().isDefined(HTML.Attribute.WIDTH)) {
   926                       getAttributes().isDefined(HTML.Attribute.WIDTH)) {
   927                     changed |= 2;
   927                     changed |= 2;
   928                 }
   928                 }
   929 
   929 
   930                 synchronized(ImageView.this) {
   930                 synchronized(ImageView.this) {
   931                     if ((changed & 1) == 1 && (state & WIDTH_FLAG) == 0) {
   931                     if ((changed & 1) == 1 && (state & HEIGHT_FLAG) == 0) {
       
   932                         height = newHeight;
       
   933                     }
       
   934                     if ((changed & 2) == 2 && (state & WIDTH_FLAG) == 0) {
   932                         width = newWidth;
   935                         width = newWidth;
   933                     }
       
   934                     if ((changed & 2) == 2 && (state & HEIGHT_FLAG) == 0) {
       
   935                         height = newHeight;
       
   936                     }
   936                     }
   937                     if ((state & LOADING_FLAG) == LOADING_FLAG) {
   937                     if ((state & LOADING_FLAG) == LOADING_FLAG) {
   938                         // No need to resize or repaint, still in the process of
   938                         // No need to resize or repaint, still in the process of
   939                         // loading.
   939                         // loading.
   940                         return true;
   940                         return true;