Changeset 35382 in webkit


Ignore:
Timestamp:
Jul 26, 2008 10:10:17 PM (16 years ago)
Author:
mrowe@apple.com
Message:

2008-07-26 Anthony Ricaud <rik24d@gmail.com>

Reviewed by Tim Hatcher.

<https://bugs.webkit.org/show_bug.cgi?id=17589> Line highlighting should last longer

Restore the fade out effect after highlighting.

  • page/inspector/SourceFrame.js: Add a class for fade-out effects and sets it at the end of highlighting time.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r35381 r35382  
     12008-07-26  Anthony Ricaud  <rik24d@gmail.com>
     2
     3        Reviewed by Tim Hatcher.
     4
     5        <https://bugs.webkit.org/show_bug.cgi?id=17589> Line highlighting should last longer
     6
     7        Restore the fade out effect after highlighting.
     8
     9        * page/inspector/SourceFrame.js: Add a class for fade-out effects and sets it at the end of highlighting time.
     10
    1112008-07-26  Michelangelo De Simone  <michelangelo@me.com>
    212
  • trunk/WebCore/page/inspector/SourceFrame.js

    r34723 r35382  
    171171            return;
    172172        sourceRow.addStyleClass("webkit-highlighted-line");
    173         setTimeout(function() { sourceRow.removeStyleClass("webkit-highlighted-line") }, 300);
     173        setTimeout(function() {
     174            var line = sourceRow.getElementsByClassName('webkit-line-content')[0];
     175            line.addStyleClass("webkit-fade-out-effect");
     176            // FIXME Replace this timeout when ontransitionend is implemented
     177            sourceRow.removeStyleClass("webkit-highlighted-line");
     178            setTimeout(function () { line.removeStyleClass("webkit-fade-out-effect"); }, 1000);
     179        }, 300);
    174180    },
    175181
     
    199205        styleText += ".webkit-height-sized-to-fit { overflow-y: hidden }\n";
    200206        styleText += ".webkit-line-content { background-color: white; }\n";
    201         styleText += ".webkit-highlighted-line .webkit-line-content { background-color: rgb(255, 255, 120); -webkit-transition-property: background-color; -webkit-transition-duration: 1s; }\n";
     207        styleText += ".webkit-highlighted-line .webkit-line-content { background-color: rgb(255, 255, 120); }\n";
     208        styleText += ".webkit-fade-out-effect { -webkit-transition-property: background-color; -webkit-transition-duration: 1s; }"
    202209        styleText += ".webkit-javascript-comment { color: rgb(0, 116, 0); }\n";
    203210        styleText += ".webkit-javascript-keyword { color: rgb(170, 13, 145); }\n";
Note: See TracChangeset for help on using the changeset viewer.