Changeset 76271 in webkit


Ignore:
Timestamp:
Jan 20, 2011 12:32:22 PM (13 years ago)
Author:
ojan@chromium.org
Message:

2011-01-20 Ojan Vafai <ojan@chromium.org>

Reviewed by Adam Barth.

fix goofup in http://trac.webkit.org/changeset/76082
https://bugs.webkit.org/show_bug.cgi?id=52830

We were showing the revision number of the patch at the bottom
of the diff and expanding from the bottom of the diff would fail.

Also, removed an unused variable and scoped queries appropriatly
to the file_diff they should have been operating on.

  • PrettyPatch/PrettyPatch.rb:
  • code-review.js:
Location:
trunk/Websites/bugs.webkit.org
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Websites/bugs.webkit.org/ChangeLog

    r76270 r76271  
     12011-01-20  Ojan Vafai  <ojan@chromium.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        fix goofup in http://trac.webkit.org/changeset/76082
     6        https://bugs.webkit.org/show_bug.cgi?id=52830
     7
     8        We were showing the revision number of the patch at the bottom
     9        of the diff and expanding from the bottom of the diff would fail.
     10
     11        Also, removed an unused variable and scoped queries appropriatly
     12        to the file_diff they should have been operating on.
     13
     14        * PrettyPatch/PrettyPatch.rb:
     15        * code-review.js:
     16
    1172011-01-19  Ojan Vafai  <ojan@chromium.org>
    218
  • trunk/Websites/bugs.webkit.org/PrettyPatch/PrettyPatch.rb

    r76270 r76271  
    409409}
    410410
     411.revision {
     412  display: none;
     413}
     414
    411415.clear_float {
    412416    clear: both;
     
    414418</style>
    415419<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    416 <script src="code-review.js?version=25"></script>
     420<script src="code-review.js?version=26"></script>
    417421EOF
    418422
  • trunk/Websites/bugs.webkit.org/code-review.js

    r76270 r76271  
    370370    var expand_bar_index = 0;
    371371    if (!$(first_line).hasClass('add') && !$(first_line).hasClass('remove'))
    372       $('h1', file_diff).after(expandBarHtml(file_name, BELOW))
    373 
    374     $('br').replaceWith(expandBarHtml(file_name));
     372      $('h1', file_diff).after(expandBarHtml(BELOW))
     373
     374    $('br', file_diff).replaceWith(expandBarHtml());
    375375
    376376    var last_line = file_diff.querySelector('.LineContainer:last-of-type');
     
    378378    // with a from line number of 0. Don't show expand links in that case either.
    379379    if (!$(last_line).hasClass('add') && !$(last_line).hasClass('remove') && fromLineNumber(last_line) != 0)
    380       $(file_diff).append(expandBarHtml(file_name, ABOVE));
    381   }
    382 
    383   function expandBarHtml(file_name, opt_direction) {
     380      $('.revision', file_diff).before(expandBarHtml(ABOVE));
     381  }
     382
     383  function expandBarHtml(opt_direction) {
    384384    var html = '<div class="ExpandBar">' +
    385385        '<div class="ExpandArea Expand' + ABOVE + '"></div>' +
Note: See TracChangeset for help on using the changeset viewer.