8178025: HiDPI with non-integer scale factor - SPANs in HTML are rendered overlapping each other

Reviewed-by: serb, ssadetsky
This commit is contained in:
Prasanta Sadhukhan 2017-11-16 12:24:02 +05:30
parent 26a4a1a6b3
commit e6a8aea72b
9 changed files with 270 additions and 10 deletions

View file

@ -1135,9 +1135,18 @@ public abstract class Component implements ImageObserver, MenuContainer,
if (graphicsConfig == gc) {
return false;
}
GraphicsConfiguration oldConfig = graphicsConfig;
graphicsConfig = gc;
/*
* If component is moved from one screen to another sceeen
* graphicsConfiguration property is fired to enable the component
* to recalculate any rendering data, if needed
*/
if (oldConfig != null && gc != null) {
firePropertyChange("graphicsConfiguration", oldConfig, gc);
}
ComponentPeer peer = this.peer;
if (peer != null) {
return peer.updateGraphicsData(gc);