This revision was automatically updated to reflect the committed changes. Closed by commit rL311575: [clang-diff] Properly clear the selection in HTML diff (authored by krobelus).
Repository: rL LLVM https://reviews.llvm.org/D37072 Files: cfe/trunk/tools/clang-diff/ClangDiff.cpp Index: cfe/trunk/tools/clang-diff/ClangDiff.cpp =================================================================== --- cfe/trunk/tools/clang-diff/ClangDiff.cpp +++ cfe/trunk/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) {
Index: cfe/trunk/tools/clang-diff/ClangDiff.cpp =================================================================== --- cfe/trunk/tools/clang-diff/ClangDiff.cpp +++ cfe/trunk/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) {
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits