[PATCH] D37072: [clang-diff] Properly clear the selection in HTML diff
Johannes Altmanninger via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 23 09:34:03 PDT 2017
johannes created this revision.
https://reviews.llvm.org/D37072
Files:
tools/clang-diff/ClangDiff.cpp
Index: tools/clang-diff/ClangDiff.cpp
===================================================================
--- tools/clang-diff/ClangDiff.cpp
+++ tools/clang-diff/ClangDiff.cpp
@@ -140,9 +140,9 @@
function clearHighlight() {
while (highlightStack.length) {
var [l, r] = highlightStack.pop()
- document.getElementById(l).style.backgroundColor = 'white'
+ document.getElementById(l).style.backgroundColor = 'inherit'
if (r[1] != '-')
- document.getElementById(r).style.backgroundColor = 'white'
+ document.getElementById(r).style.backgroundColor = 'inherit'
}
}
function highlight(event) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37072.112390.patch
Type: text/x-patch
Size: 622 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170823/18058e05/attachment.bin>
More information about the cfe-commits
mailing list