提交 b0c58191 编写于 作者: S serb

7149913: [macosx] Deadlock in LWTextComponentPeer

Reviewed-by: anthony, art
上级 ca84e042
...@@ -213,16 +213,8 @@ public abstract class LWComponentPeer<T extends Component, D extends JComponent> ...@@ -213,16 +213,8 @@ public abstract class LWComponentPeer<T extends Component, D extends JComponent>
SwingUtilities3.setDelegateRepaintManager(delegate, new RepaintManager() { SwingUtilities3.setDelegateRepaintManager(delegate, new RepaintManager() {
@Override @Override
public void addDirtyRegion(final JComponent c, final int x, final int y, final int w, final int h) { public void addDirtyRegion(final JComponent c, final int x, final int y, final int w, final int h) {
if (SunToolkit.isDispatchThreadForAppContext(getTarget())) { repaintPeer(SwingUtilities.convertRectangle(
synchronized (getDelegateLock()) { c, new Rectangle(x, y, w, h), getDelegate()));
if (getDelegate().isPaintingForPrint()) {
return;
}
}
}
Rectangle res = SwingUtilities.convertRectangle(
c, new Rectangle(x, y, w, h), getDelegate());
repaintPeer(res);
} }
}); });
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册