Changeset 74150 in webkit


Ignore:
Timestamp:
Dec 15, 2010 3:33:58 PM (13 years ago)
Author:
ojan@chromium.org
Message:

2010-12-15 Ojan Vafai <ojan@chromium.org>

Reviewed by Adam Barth.

fix goofups from r74142 and r74130
https://bugs.webkit.org/show_bug.cgi?id=51146

Accidentally shrank the inline comment boxes and made
the toolbar not show up when there were image diffs.

  • PrettyPatch/PrettyPatch.rb:
  • code-review.js:
Location:
trunk/BugsSite
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BugsSite/ChangeLog

    r74142 r74150  
     12010-12-15  Ojan Vafai  <ojan@chromium.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        fix goofups from r74142 and r74130
     6        https://bugs.webkit.org/show_bug.cgi?id=51146
     7
     8        Accidentally shrank the inline comment boxes and made
     9        the toolbar not show up when there were image diffs.
     10
     11        * PrettyPatch/PrettyPatch.rb:
     12        * code-review.js:
     13
    1142010-12-14  Ojan Vafai  <ojan@chromium.org>
    215
  • trunk/BugsSite/PrettyPatch/PrettyPatch.rb

    r74142 r74150  
    208208}
    209209
     210.comment textarea {
     211  height: 6em;
     212}
     213
     214.overallComments textarea {
     215  height: 2em;
     216}
     217
    210218.comment textarea, .overallComments textarea {
    211219  display: block;
    212220  width: 100%;
    213   height: 2em;
    214221}
    215222
     
    352359</style>
    353360<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    354 <script src="code-review.js?version=14"></script>
     361<script src="code-review.js?version=15"></script>
    355362EOF
    356363
  • trunk/BugsSite/code-review.js

    r74142 r74150  
    288288
    289289    var file_diff = files[file_name];
    290     $('.context', file_diff).detach();
    291 
    292     var expand_bar_index = 0;
    293290
    294291    // Don't show the links to expand upwards/downwards if the patch starts/ends without context
    295292    // lines, i.e. starts/ends with add/remove lines.
    296293    var first_line = file_diff.querySelector('.Line');
     294
     295    // If there is no element with a "Line" class, then this is an image diff.
     296    if (!first_line)
     297      return;
     298
     299    $('.context', file_diff).detach();
     300
     301    var expand_bar_index = 0;
    297302    if (!$(first_line).hasClass('add') && !$(first_line).hasClass('remove'))
    298303      $('h1', file_diff).after(expandBarHtml(file_name, BELOW))
Note: See TracChangeset for help on using the changeset viewer.