[PATCH] D37072: [clang-diff] Properly clear the selection in HTML diff

Phabricator via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 23 09:53:22 PDT 2017


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) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37072.112394.patch
Type: text/x-patch
Size: 652 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170823/4b03d445/attachment.bin>


More information about the cfe-commits mailing list