Title: [135537] trunk/Source/WebCore
- Revision
- 135537
- Author
- [email protected]
- Date
- 2012-11-22 12:31:05 -0800 (Thu, 22 Nov 2012)
Log Message
[Web Inspector]Code Style changes in TimelinePresentationModel.js.
https://bugs.webkit.org/show_bug.cgi?id=102885.
Patch by Pan Deng <[email protected]> on 2012-11-22
Reviewed by Pavel Feldman.
This patch changes "switch" code style for TimelinePresentationModel.js, no functionality update.
No new tests.
* inspector/front-end/TimelinePresentationModel.js:
(WebInspector.TimelinePresentationModel.Record.prototype._getRecordDetails):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (135536 => 135537)
--- trunk/Source/WebCore/ChangeLog 2012-11-22 20:18:46 UTC (rev 135536)
+++ trunk/Source/WebCore/ChangeLog 2012-11-22 20:31:05 UTC (rev 135537)
@@ -1,3 +1,17 @@
+2012-11-22 Pan Deng <[email protected]>
+
+ [Web Inspector]Code Style changes in TimelinePresentationModel.js.
+ https://bugs.webkit.org/show_bug.cgi?id=102885.
+
+ Reviewed by Pavel Feldman.
+
+ This patch changes "switch" code style for TimelinePresentationModel.js, no functionality update.
+
+ No new tests.
+
+ * inspector/front-end/TimelinePresentationModel.js:
+ (WebInspector.TimelinePresentationModel.Record.prototype._getRecordDetails):
+
2012-11-22 Ryosuke Niwa <[email protected]>
Build fix attempt.
Modified: trunk/Source/WebCore/inspector/front-end/TimelinePresentationModel.js (135536 => 135537)
--- trunk/Source/WebCore/inspector/front-end/TimelinePresentationModel.js 2012-11-22 20:18:46 UTC (rev 135536)
+++ trunk/Source/WebCore/inspector/front-end/TimelinePresentationModel.js 2012-11-22 20:31:05 UTC (rev 135537)
@@ -945,62 +945,62 @@
{
var details;
switch (this.type) {
- case WebInspector.TimelineModel.RecordType.GCEvent:
- details = WebInspector.UIString("%s collected", Number.bytesToString(this.data["usedHeapSizeDelta"]));
- break;
- case WebInspector.TimelineModel.RecordType.TimerFire:
- details = this._linkifyScriptLocation(this.data["timerId"]);
- break;
- case WebInspector.TimelineModel.RecordType.FunctionCall:
- details = this._linkifyScriptLocation();
- break;
- case WebInspector.TimelineModel.RecordType.FireAnimationFrame:
- details = this._linkifyScriptLocation(this.data["id"]);
- break;
- case WebInspector.TimelineModel.RecordType.EventDispatch:
- details = this.data ? this.data["type"] : null;
- break;
- case WebInspector.TimelineModel.RecordType.Paint:
- details = this.data["width"] + "\u2009\u00d7\u2009" + this.data["height"];
- break;
- case WebInspector.TimelineModel.RecordType.DecodeImage:
- details = this.data["imageType"];
- break;
- case WebInspector.TimelineModel.RecordType.ResizeImage:
- details = this.data["cached"] ? WebInspector.UIString("cached") : WebInspector.UIString("non-cached");
- break;
- case WebInspector.TimelineModel.RecordType.TimerInstall:
- case WebInspector.TimelineModel.RecordType.TimerRemove:
- details = this._linkifyTopCallFrame(this.data["timerId"]);
- break;
- case WebInspector.TimelineModel.RecordType.RequestAnimationFrame:
- case WebInspector.TimelineModel.RecordType.CancelAnimationFrame:
- details = this._linkifyTopCallFrame(this.data["id"]);
- break;
- case WebInspector.TimelineModel.RecordType.ParseHTML:
- case WebInspector.TimelineModel.RecordType.RecalculateStyles:
- details = this._linkifyTopCallFrame();
- break;
- case WebInspector.TimelineModel.RecordType.EvaluateScript:
- details = this.url ? this._linkifyLocation(this.url, this.data["lineNumber"], 0) : null;
- break;
- case WebInspector.TimelineModel.RecordType.XHRReadyStateChange:
- case WebInspector.TimelineModel.RecordType.XHRLoad:
- case WebInspector.TimelineModel.RecordType.ScheduleResourceRequest:
- case WebInspector.TimelineModel.RecordType.ResourceSendRequest:
- case WebInspector.TimelineModel.RecordType.ResourceReceivedData:
- case WebInspector.TimelineModel.RecordType.ResourceReceiveResponse:
- case WebInspector.TimelineModel.RecordType.ResourceFinish:
- details = WebInspector.displayNameForURL(this.url);
- break;
- case WebInspector.TimelineModel.RecordType.Time:
- case WebInspector.TimelineModel.RecordType.TimeEnd:
- case WebInspector.TimelineModel.RecordType.TimeStamp:
- details = this.data["message"];
- break;
- default:
- details = this._linkifyScriptLocation() || this._linkifyTopCallFrame() || null;
- break;
+ case WebInspector.TimelineModel.RecordType.GCEvent:
+ details = WebInspector.UIString("%s collected", Number.bytesToString(this.data["usedHeapSizeDelta"]));
+ break;
+ case WebInspector.TimelineModel.RecordType.TimerFire:
+ details = this._linkifyScriptLocation(this.data["timerId"]);
+ break;
+ case WebInspector.TimelineModel.RecordType.FunctionCall:
+ details = this._linkifyScriptLocation();
+ break;
+ case WebInspector.TimelineModel.RecordType.FireAnimationFrame:
+ details = this._linkifyScriptLocation(this.data["id"]);
+ break;
+ case WebInspector.TimelineModel.RecordType.EventDispatch:
+ details = this.data ? this.data["type"] : null;
+ break;
+ case WebInspector.TimelineModel.RecordType.Paint:
+ details = this.data["width"] + "\u2009\u00d7\u2009" + this.data["height"];
+ break;
+ case WebInspector.TimelineModel.RecordType.DecodeImage:
+ details = this.data["imageType"];
+ break;
+ case WebInspector.TimelineModel.RecordType.ResizeImage:
+ details = this.data["cached"] ? WebInspector.UIString("cached") : WebInspector.UIString("non-cached");
+ break;
+ case WebInspector.TimelineModel.RecordType.TimerInstall:
+ case WebInspector.TimelineModel.RecordType.TimerRemove:
+ details = this._linkifyTopCallFrame(this.data["timerId"]);
+ break;
+ case WebInspector.TimelineModel.RecordType.RequestAnimationFrame:
+ case WebInspector.TimelineModel.RecordType.CancelAnimationFrame:
+ details = this._linkifyTopCallFrame(this.data["id"]);
+ break;
+ case WebInspector.TimelineModel.RecordType.ParseHTML:
+ case WebInspector.TimelineModel.RecordType.RecalculateStyles:
+ details = this._linkifyTopCallFrame();
+ break;
+ case WebInspector.TimelineModel.RecordType.EvaluateScript:
+ details = this.url ? this._linkifyLocation(this.url, this.data["lineNumber"], 0) : null;
+ break;
+ case WebInspector.TimelineModel.RecordType.XHRReadyStateChange:
+ case WebInspector.TimelineModel.RecordType.XHRLoad:
+ case WebInspector.TimelineModel.RecordType.ScheduleResourceRequest:
+ case WebInspector.TimelineModel.RecordType.ResourceSendRequest:
+ case WebInspector.TimelineModel.RecordType.ResourceReceivedData:
+ case WebInspector.TimelineModel.RecordType.ResourceReceiveResponse:
+ case WebInspector.TimelineModel.RecordType.ResourceFinish:
+ details = WebInspector.displayNameForURL(this.url);
+ break;
+ case WebInspector.TimelineModel.RecordType.Time:
+ case WebInspector.TimelineModel.RecordType.TimeEnd:
+ case WebInspector.TimelineModel.RecordType.TimeStamp:
+ details = this.data["message"];
+ break;
+ default:
+ details = this._linkifyScriptLocation() || this._linkifyTopCallFrame() || null;
+ break;
}
if (typeof details === "string")
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes