Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2005-11-08 22:24:57 +0300
committerAtsushi Eno <atsushieno@gmail.com>2005-11-08 22:24:57 +0300
commit5840fc6a0505d66ff013b61447e5d0083752959d (patch)
tree70ebd3646d55d7cb0ddc902e35dc896632200726 /web
parente319ae4680f0b07b78de547bf31c439ed4d88580 (diff)
Let minimum attribute filters for ComVisible and DebuggerDisplay working.
svn path=/trunk/mono/; revision=52723
Diffstat (limited to 'web')
-rw-r--r--web/web/deploy/cm/cormissing.js31
1 files changed, 28 insertions, 3 deletions
diff --git a/web/web/deploy/cm/cormissing.js b/web/web/deploy/cm/cormissing.js
index d94f110f737..63ec04cf671 100644
--- a/web/web/deploy/cm/cormissing.js
+++ b/web/web/deploy/cm/cormissing.js
@@ -69,9 +69,10 @@ function getChildrenByTagName (elt, strTag)
return rgChildren;
}
-function viewAll (elt, dictTypes)
+function viewAll (elt, dictTypes, attrFilters)
{
var fView = false;
+
var rgImages = getChildrenByTagName (elt, 'IMG');
var cImages = rgImages.length;
for (var iImage = 0; iImage < cImages; iImage++)
@@ -89,8 +90,20 @@ function viewAll (elt, dictTypes)
{
var iElt;
for (iElt = 0; iElt < cElts; iElt ++)
- fView |= viewAll (rgElts [iElt], dictTypes);
+ fView |= viewAll (rgElts [iElt], dictTypes, attrFilters);
+ }
+
+ // ... except for those attributes that are being filtered out.
+ var rgSpans = getChildrenByTagName (elt, 'SPAN');
+ var cSpans = rgSpans.length;
+ for (var iSpan = 0; iSpan < cSpans; iSpan++)
+ {
+ var strSpan = rgSpans [iSpan].firstChild.nodeValue;
+ for (strzzz in attrFilters)
+ if (strSpan == strzzz)
+ fView = false;
}
+
elt.style.display = fView ? '' : 'none';
return fView;
}
@@ -317,6 +330,8 @@ function filterTree ()
var eltTodo = document.getElementById ('todo');
var eltExtra = document.getElementById ('extra');
var eltErrors = document.getElementById ('errors');
+ var eltComVisible = document.getElementById ('ComVisible');
+ var eltDebuggerDisplay = document.getElementById ('DebuggerDisplay');
var dictTypes = new Object ();
if (eltMissing.checked)
@@ -329,7 +344,12 @@ function filterTree ()
dictTypes ['sx'] = true;
// dictTypes ['sc'] = true;
- viewAll (document.getElementById ('ROOT'), dictTypes);
+ var attrFilters = new Object ();
+ if (!eltComVisible.checked)
+ attrFilters ['System.Runtime.InteropServices.ComVisibleAttribute'] = true;
+ if (!eltDebuggerDisplay.checked)
+ attrFilters ['System.Diagnostics.DebuggerDisplayAttribute'] = true;
+ viewAll (document.getElementById ('ROOT'), dictTypes, attrFilters);
}
function selectMissing ()
@@ -352,6 +372,11 @@ function selectErrors ()
toggleFilter ('errors');
}
+function toggleAttributeFilter (attrName)
+{
+ toggleFilter (attrName);
+}
+
function toggleFilter (strFilter)
{
var eltTodo = document.getElementById ('todo');