Changeset 35382 in webkit
- Timestamp:
- Jul 26, 2008 10:10:17 PM (16 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r35381 r35382 1 2008-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 1 11 2008-07-26 Michelangelo De Simone <michelangelo@me.com> 2 12 -
trunk/WebCore/page/inspector/SourceFrame.js
r34723 r35382 171 171 return; 172 172 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); 174 180 }, 175 181 … … 199 205 styleText += ".webkit-height-sized-to-fit { overflow-y: hidden }\n"; 200 206 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; }" 202 209 styleText += ".webkit-javascript-comment { color: rgb(0, 116, 0); }\n"; 203 210 styleText += ".webkit-javascript-keyword { color: rgb(170, 13, 145); }\n";
Note: See TracChangeset
for help on using the changeset viewer.