Title: [140814] trunk/Source/WebCore
- Revision
- 140814
- Author
- [email protected]
- Date
- 2013-01-25 04:57:55 -0800 (Fri, 25 Jan 2013)
Log Message
Web Inspector: [Network] Use DataGrid column alignment instead of custom styling.
https://bugs.webkit.org/show_bug.cgi?id=107935
Patch by Eugene Klyuchnikov <[email protected]> on 2013-01-25
Reviewed by Pavel Feldman.
On Network Panel column alignment is specified both in
column descriptors and in CSS stylesheet.
Only one alignment specifier should last.
* inspector/front-end/DataGrid.js:
(WebInspector.DataGridNode.prototype.createTD): Extracted common code.
(WebInspector.DataGridNode.prototype.createCell): Use "createTD".
* inspector/front-end/NetworkPanel.js:
(WebInspector.NetworkDataGridNode.prototype._createDivInTD): Ditto.
* inspector/front-end/networkLogView.css: Remove exheberant rules.
* inspector/front-end/networkPanel.css: Fix whitespaces.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (140813 => 140814)
--- trunk/Source/WebCore/ChangeLog 2013-01-25 12:36:03 UTC (rev 140813)
+++ trunk/Source/WebCore/ChangeLog 2013-01-25 12:57:55 UTC (rev 140814)
@@ -1,3 +1,23 @@
+2013-01-25 Eugene Klyuchnikov <[email protected]>
+
+ Web Inspector: [Network] Use DataGrid column alignment instead of custom styling.
+ https://bugs.webkit.org/show_bug.cgi?id=107935
+
+ Reviewed by Pavel Feldman.
+
+ On Network Panel column alignment is specified both in
+ column descriptors and in CSS stylesheet.
+
+ Only one alignment specifier should last.
+
+ * inspector/front-end/DataGrid.js:
+ (WebInspector.DataGridNode.prototype.createTD): Extracted common code.
+ (WebInspector.DataGridNode.prototype.createCell): Use "createTD".
+ * inspector/front-end/NetworkPanel.js:
+ (WebInspector.NetworkDataGridNode.prototype._createDivInTD): Ditto.
+ * inspector/front-end/networkLogView.css: Remove exheberant rules.
+ * inspector/front-end/networkPanel.css: Fix whitespaces.
+
2013-01-25 Sergey Ryazanov <[email protected]>
Web Inspector: Add explanation for Console object expansion behaviour
Modified: trunk/Source/WebCore/inspector/front-end/DataGrid.js (140813 => 140814)
--- trunk/Source/WebCore/inspector/front-end/DataGrid.js 2013-01-25 12:36:03 UTC (rev 140813)
+++ trunk/Source/WebCore/inspector/front-end/DataGrid.js 2013-01-25 12:57:55 UTC (rev 140814)
@@ -1258,7 +1258,11 @@
this.createCells();
},
- createCell: function(columnIdentifier)
+ /**
+ * @param {string} columnIdentifier
+ * @return {!Element}
+ */
+ createTD: function(columnIdentifier)
{
var cell = document.createElement("td");
cell.className = columnIdentifier + "-column";
@@ -1268,6 +1272,13 @@
if (alignment)
cell.addStyleClass(alignment);
+ return cell;
+ },
+
+ createCell: function(columnIdentifier)
+ {
+ var cell = this.createTD(columnIdentifier);
+
var data = ""
var div = document.createElement("div");
if (data instanceof Node)
Modified: trunk/Source/WebCore/inspector/front-end/NetworkPanel.js (140813 => 140814)
--- trunk/Source/WebCore/inspector/front-end/NetworkPanel.js 2013-01-25 12:36:03 UTC (rev 140813)
+++ trunk/Source/WebCore/inspector/front-end/NetworkPanel.js 2013-01-25 12:57:55 UTC (rev 140814)
@@ -2015,10 +2015,8 @@
_createDivInTD: function(columnIdentifier)
{
- var td = document.createElement("td");
- td.className = columnIdentifier + "-column";
- var div = document.createElement("div");
- td.appendChild(div);
+ var td = this.createTD(columnIdentifier);
+ var div = td.createChild("div");
this._element.appendChild(td);
return div;
},
Modified: trunk/Source/WebCore/inspector/front-end/networkLogView.css (140813 => 140814)
--- trunk/Source/WebCore/inspector/front-end/networkLogView.css 2013-01-25 12:36:03 UTC (rev 140813)
+++ trunk/Source/WebCore/inspector/front-end/networkLogView.css 2013-01-25 12:57:55 UTC (rev 140814)
@@ -86,11 +86,6 @@
text-decoration: underline;
}
-.network-log-grid.data-grid td.size-column,
-.network-log-grid.data-grid td.time-column {
- text-align: right;
-}
-
.network-log-grid.data-grid.small .network-graph-side {
height: 14px;
}
Modified: trunk/Source/WebCore/inspector/front-end/networkPanel.css (140813 => 140814)
--- trunk/Source/WebCore/inspector/front-end/networkPanel.css 2013-01-25 12:36:03 UTC (rev 140813)
+++ trunk/Source/WebCore/inspector/front-end/networkPanel.css 2013-01-25 12:57:55 UTC (rev 140814)
@@ -49,7 +49,7 @@
display: none;
}
-#network-views.small #network-close-button {
+#network-views.small #network-close-button {
top: 4px;
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes