Title: [140813] trunk/Source/WebCore
- Revision
- 140813
- Author
- [email protected]
- Date
- 2013-01-25 04:36:03 -0800 (Fri, 25 Jan 2013)
Log Message
Web Inspector: Add explanation for Console object expansion behaviour
https://bugs.webkit.org/show_bug.cgi?id=107793
Patch by Sergey Ryazanov <[email protected]> on 2013-01-25
Reviewed by Pavel Feldman.
* English.lproj/localizedStrings.js:
* inspector/front-end/ConsoleMessage.js:
(WebInspector.ConsoleMessageImpl.prototype._formatParameterAsArrayOrObject):
* inspector/front-end/inspector.css:
(.object-info-state-note):
(.object-info-state-note::before):
(.object-info-state-note:hover):
(.section.expanded .object-info-state-note):
(.section.expanded .properties, .event-bar.expanded .event-properties):
(.pane.expanded .properties, .event-bar .event-properties):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (140812 => 140813)
--- trunk/Source/WebCore/ChangeLog 2013-01-25 12:32:58 UTC (rev 140812)
+++ trunk/Source/WebCore/ChangeLog 2013-01-25 12:36:03 UTC (rev 140813)
@@ -1,3 +1,21 @@
+2013-01-25 Sergey Ryazanov <[email protected]>
+
+ Web Inspector: Add explanation for Console object expansion behaviour
+ https://bugs.webkit.org/show_bug.cgi?id=107793
+
+ Reviewed by Pavel Feldman.
+
+ * English.lproj/localizedStrings.js:
+ * inspector/front-end/ConsoleMessage.js:
+ (WebInspector.ConsoleMessageImpl.prototype._formatParameterAsArrayOrObject):
+ * inspector/front-end/inspector.css:
+ (.object-info-state-note):
+ (.object-info-state-note::before):
+ (.object-info-state-note:hover):
+ (.section.expanded .object-info-state-note):
+ (.section.expanded .properties, .event-bar.expanded .event-properties):
+ (.pane.expanded .properties, .event-bar .event-properties):
+
2013-01-25 Claudio Saavedra <[email protected]>
Missing files in GNUmakefile.list.am for Notifications support
Modified: trunk/Source/WebCore/English.lproj/localizedStrings.js (140812 => 140813)
--- trunk/Source/WebCore/English.lproj/localizedStrings.js 2013-01-25 12:32:58 UTC (rev 140812)
+++ trunk/Source/WebCore/English.lproj/localizedStrings.js 2013-01-25 12:36:03 UTC (rev 140813)
@@ -847,3 +847,4 @@
localizedStrings["File systems"] = "File systems";
localizedStrings["Mappings"] = "Mappings";
localizedStrings["Add"] = "Add";
+localizedStrings["Object state below is captured upon first expansion"] = "Object state below is captured upon first expansion";
Modified: trunk/Source/WebCore/inspector/front-end/ConsoleMessage.js (140812 => 140813)
--- trunk/Source/WebCore/inspector/front-end/ConsoleMessage.js 2013-01-25 12:32:58 UTC (rev 140812)
+++ trunk/Source/WebCore/inspector/front-end/ConsoleMessage.js 2013-01-25 12:36:03 UTC (rev 140813)
@@ -304,6 +304,9 @@
var section = new WebInspector.ObjectPropertiesSection(obj, titleElement);
section.enableContextMenu();
elem.appendChild(section.element);
+
+ var note = section.titleElement.createChild("span", "object-info-state-note");
+ note.title = WebInspector.UIString("Object state below is captured upon first expansion");
},
/**
Modified: trunk/Source/WebCore/inspector/front-end/inspector.css (140812 => 140813)
--- trunk/Source/WebCore/inspector/front-end/inspector.css 2013-01-25 12:32:58 UTC (rev 140812)
+++ trunk/Source/WebCore/inspector/front-end/inspector.css 2013-01-25 12:36:03 UTC (rev 140813)
@@ -1212,6 +1212,30 @@
font-style: italic;
}
+.object-info-state-note {
+ display: none;
+ width: 12px;
+ height: 12px;
+ background-color: rgb(179, 203, 247);
+ color: white;
+ text-align: center;
+ border-radius: 5px;
+ line-height: 13px;
+ margin: 0 8px;
+}
+
+.object-info-state-note::before {
+ content: "i";
+}
+
+.object-info-state-note:hover {
+ background-color: rgb(52, 115, 231);
+}
+
+.section.expanded .object-info-state-note {
+ display: inline-block;
+}
+
.error-message {
color: red;
}
@@ -1534,6 +1558,9 @@
.section.expanded .properties, .event-bar.expanded .event-properties {
display: block;
+}
+
+.pane.expanded .properties, .event-bar .event-properties {
padding-left: 16px;
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes