equal
deleted
inserted
replaced
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; |