diff options
| author | Lars Vogel | 2019-02-05 12:07:17 +0000 |
|---|---|---|
| committer | Lars Vogel | 2019-02-05 13:30:03 +0000 |
| commit | 8c86bb41bb48ccdb80f6cbe5f1ac5bf47dcd4f9f (patch) | |
| tree | 0802c924b51bd1d19c3a7050d85f1ed471ba2336 | |
| parent | d1216ef9bfc0a0e5be3a218c1e02c011443f78ae (diff) | |
| download | eclipse.platform.ui-8c86bb41bb48ccdb80f6cbe5f1ac5bf47dcd4f9f.tar.gz eclipse.platform.ui-8c86bb41bb48ccdb80f6cbe5f1ac5bf47dcd4f9f.tar.xz eclipse.platform.ui-8c86bb41bb48ccdb80f6cbe5f1ac5bf47dcd4f9f.zip | |
Bug 505987 - Freeze at
org.eclipse.swt.internal.gtk.OS._gdk_window_get_origin
Micro-optimzation to avoid unnecessary local object allocation.
Change-Id: I46d709b8e1929a872dc19a106edd30ecf52e327b
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
| -rw-r--r-- | bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ControlDecoration.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ControlDecoration.java b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ControlDecoration.java index f239832fd81..b2092dc1445 100644 --- a/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ControlDecoration.java +++ b/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ControlDecoration.java @@ -622,8 +622,8 @@ public class ControlDecoration { // Listener for painting the decoration paintListener = event -> { - Control control = (Control) event.widget; if (shouldShowDecoration()) { + Control control = (Control) event.widget; Rectangle rect = getDecorationRectangle(control); event.gc.drawImage(getImage(), rect.x, rect.y); } |
