+2006-05-11 Timothy Hatcher <timothy@apple.com>
+
+ Reviewed by Anders.
+
+ Fixes <rdar://problem/4411845> lots of SPOD trying to scroll through
+ Markup & Content inspecting body at apple.com (6614)
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=6614
+
+ Removed the Markup & Content pane when viewing a element.
+ This pane was not that useful and made the inspector really slow
+ when the markup was large. Only show this pane for text nodes.
+
+ * WebInspector/webInspector/inspector.css: use -webkit prefix
+ * WebInspector/webInspector/inspector.html:
+ * WebInspector/webInspector/inspector.js:
+
2006-05-11 Sam Weinig <sam.weinig@gmail.com>
Reviewed by Timothy.
}
* {
- -apple-user-select: none;
+ -webkit-user-select: none;
}
a:link {
}
button {
- -apple-dashboard-region: dashboard-region(control rectangle);
+ -webkit-dashboard-region: dashboard-region(control rectangle);
}
.disabled {
width: 16px;
height: 16px;
z-index: 10;
- -apple-dashboard-region: dashboard-region(resize rectangle);
+ -webkit-dashboard-region: dashboard-region(resize rectangle);
background-image: url( file:///System/Library/WidgetResources/resize.png );
background-repeat: no-repeat;
}
height: 10px;
cursor: move;
z-index: 10;
- -apple-dashboard-region: dashboard-region(control rectangle);
+ -webkit-dashboard-region: dashboard-region(control rectangle);
}
#splitter hr {
bottom: 4px;
left: 10px;
right: 10px;
- -apple-dashboard-region: dashboard-region(control rectangle);
+ -webkit-dashboard-region: dashboard-region(control rectangle);
}
#treeScrollArea {
}
#nodePane {
- display: -apple-box;
- -apple-box-orient: vertical;
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
}
.infoRow {
- display: -apple-box;
- -apple-box-orient: horizontal;
+ display: -webkit-box;
+ -webkit-box-orient: horizontal;
margin-top: 2px;
}
}
.infoRow .value {
- display: -apple-box;
- -apple-box-flex: 1;
- -apple-dashboard-region: dashboard-region(control rectangle);
- -apple-user-select: text;
+ display: -webkit-box;
+ -webkit-box-flex: 1;
+ -webkit-dashboard-region: dashboard-region(control rectangle);
+ -webkit-user-select: text;
white-space: nowrap;
}
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
- -apple-user-select: text;
+ -webkit-user-select: text;
}
#elementAttributes {
- display: -apple-box;
- -apple-box-flex: 3;
- -apple-box-orient: vertical;
+ display: -webkit-box;
+ -webkit-box-flex: 3;
+ -webkit-box-orient: vertical;
min-height: 60px;
max-height: 160px;
}
#elementAttributesList {
- -apple-dashboard-region: dashboard-region(control rectangle);
+ -webkit-dashboard-region: dashboard-region(control rectangle);
}
.attributeList {
.attributeList ul {
list-style-type: none;
- -apple-padding-start: 10px;
+ -webkit-padding-start: 10px;
}
.attributeList li {
}
.attributeList li span {
- -apple-user-select: text;
+ -webkit-user-select: text;
}
.attributeList li .property::after {
}
#nodeContents {
- display: -apple-box;
- -apple-box-flex: 12;
- -apple-box-orient: vertical;
+ display: -webkit-box;
+ -webkit-box-flex: 12;
+ -webkit-box-orient: vertical;
overflow: hidden;
}
#nodeContentsScrollview {
- -apple-dashboard-region: dashboard-region(control rectangle);
- -apple-user-select: text;
+ -webkit-dashboard-region: dashboard-region(control rectangle);
+ -webkit-user-select: text;
overflow: hidden;
font-size: 11px;
word-wrap: break-word;
}
.scrollArea {
- display: -apple-box;
- -apple-box-orient: horizontal;
- -apple-box-flex: 1;
+ display: -webkit-box;
+ -webkit-box-orient: horizontal;
+ -webkit-box-flex: 1;
position: relative;
}
.scrollArea > .view {
position: relative;
- display: -apple-box;
- -apple-box-flex: 1;
+ display: -webkit-box;
+ -webkit-box-flex: 1;
}
.scrollArea > .view > div {
bottom: 0;
right: 0;
width: 19px;
- -apple-dashboard-region: dashboard-region(control rectangle);
+ -webkit-dashboard-region: dashboard-region(control rectangle);
}
#stylePane {
- display: -apple-box;
- -apple-box-flex: 1;
- -apple-box-orient: vertical;
+ display: -webkit-box;
+ -webkit-box-flex: 1;
+ -webkit-box-orient: vertical;
overflow: hidden;
}
}
#styleRulesScrollview {
- display: -apple-box;
- -apple-box-orient: vertical;
- -apple-dashboard-region: dashboard-region(control rectangle);
- -apple-box-flex: 1;
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-dashboard-region: dashboard-region(control rectangle);
+ -webkit-box-flex: 1;
}
#styleRulesScrollview hr.divider {
#styleProperties {
background-color: rgba(0,0,0,0.2);
border: 1px solid rgba(255,255,255,0.4);
- -apple-box-flex: 1;
- -apple-dashboard-region: dashboard-region(control rectangle);
+ -webkit-box-flex: 1;
+ -webkit-dashboard-region: dashboard-region(control rectangle);
padding: 3px;
}
.treeList ul {
list-style-type: none;
- -apple-padding-start: 10px;
+ -webkit-padding-start: 10px;
}
.treeList li {
}
.treeList li span {
- -apple-user-select: text;
+ -webkit-user-select: text;
}
.treeList li .property::after {
nodeContentsScrollArea.refresh();
} else if (focusedNode.nodeType == Node.ELEMENT_NODE) {
document.getElementById("elementAttributes").style.display = null;
- document.getElementById("nodeContents").style.display = null;
-
+ document.getElementById("nodeContents").style.display = "none";
+
updateElementAttributes();
if (focusedNode.namespaceURI.length > 0) {
} else {
document.getElementById("nodeNamespaceRow").style.display = "none";
}
-
- document.getElementById("nodeContentsScrollview").innerHTML = "<span class=\"disabled\">Loading...</span>";
- nodeContentsScrollArea.refresh();
-
- clearTimeout(nodeUpdateTimeout);
- nodeUpdateTimeout = setTimeout("delayedNodePaneUpdate()", 250);
} else if (focusedNode.nodeType == Node.DOCUMENT_NODE) {
document.getElementById("nodeNamespaceRow").style.display = "none";
document.getElementById("elementAttributes").style.display = "none";
document.getElementById("nodeType").textContent = nodeTypeName(focusedNode);
document.getElementById("nodeName").textContent = focusedNode.nodeName;
-}
-var nodeUpdateTimeout = null;
-function delayedNodePaneUpdate()
-{
- var focusedNode = Inspector.focusedDOMNode();
- var serializer = new XMLSerializer();
- document.getElementById("nodeContentsScrollview").textContent = serializer.serializeToString(focusedNode);
- nodeContentsScrollArea.refresh();
+ refreshScrollbars();
}
var styleRules = null;