Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 321295 | Differences between
and this patch

Collapse All | Expand All

(-)js/org/eclipse/swt/widgets/Link.js (-3 / +3 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2009 EclipseSource and others. All rights reserved.
2
 * Copyright (c) 2009, 2010 EclipseSource and others. All rights reserved.
3
 * This program and the accompanying materials are made available under the
3
 * This program and the accompanying materials are made available under the
4
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
4
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
5
 * and is available at http://www.eclipse.org/legal/epl-v10.html
5
 * and is available at http://www.eclipse.org/legal/epl-v10.html
Lines 304-317 Link Here
304
      var linkElement = this.getElement();
304
      var linkElement = this.getElement();
305
      if( linkElement ) {
305
      if( linkElement ) {
306
        var hyperlinks = linkElement.getElementsByTagName( "span" );
306
        var hyperlinks = linkElement.getElementsByTagName( "span" );
307
        if( this._currentFocusedLink >= 0 ) {
307
        if( this._currentFocusedLink >= 0 && this._currentFocusedLink < hyperlinks.length ) {
308
          hyperlinks[ this._currentFocusedLink ].blur();
308
          hyperlinks[ this._currentFocusedLink ].blur();
309
          if( qx.core.Variant.isSet( "qx.client", "webkit" ) ) {
309
          if( qx.core.Variant.isSet( "qx.client", "webkit" ) ) {
310
            hyperlinks[ this._currentFocusedLink ].style.outline = "none";
310
            hyperlinks[ this._currentFocusedLink ].style.outline = "none";
311
          }
311
          }
312
        }
312
        }
313
        this._currentFocusedLink = id;
313
        this._currentFocusedLink = id;
314
        if( this._currentFocusedLink >= 0 ) {
314
        if( this._currentFocusedLink >= 0 && this._currentFocusedLink < hyperlinks.length ) {
315
          hyperlinks[ this._currentFocusedLink ].focus();
315
          hyperlinks[ this._currentFocusedLink ].focus();
316
          if( qx.core.Variant.isSet( "qx.client", "webkit" ) ) {
316
          if( qx.core.Variant.isSet( "qx.client", "webkit" ) ) {
317
            hyperlinks[ this._currentFocusedLink ].style.outline = "1px dotted";
317
            hyperlinks[ this._currentFocusedLink ].style.outline = "1px dotted";

Return to bug 321295