+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:
+
2010-12-14 Ojan Vafai <ojan@chromium.org>
Reviewed by Adam Barth.
position: relative;
}
+.comment textarea {
+ height: 6em;
+}
+
+.overallComments textarea {
+ height: 2em;
+}
+
.comment textarea, .overallComments textarea {
display: block;
width: 100%;
- height: 2em;
}
.overallComments .open {
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
-<script src="code-review.js?version=14"></script>
+<script src="code-review.js?version=15"></script>
EOF
def self.revisionOrDescription(string)
return;
var file_diff = files[file_name];
- $('.context', file_diff).detach();
-
- var expand_bar_index = 0;
// Don't show the links to expand upwards/downwards if the patch starts/ends without context
// lines, i.e. starts/ends with add/remove lines.
var first_line = file_diff.querySelector('.Line');
+
+ // If there is no element with a "Line" class, then this is an image diff.
+ if (!first_line)
+ return;
+
+ $('.context', file_diff).detach();
+
+ var expand_bar_index = 0;
if (!$(first_line).hasClass('add') && !$(first_line).hasClass('remove'))
$('h1', file_diff).after(expandBarHtml(file_name, BELOW))