Commit 10229997 authored by Alexey Kozyatinskiy's avatar Alexey Kozyatinskiy Committed by Commit Bot

[DevTools] removed promiseCreationFrame

We removed promiseCreationFrame from protocol.

R=dgozman@chromium.org

Bug: none
Change-Id: I18d60afb9b7b5ae4f4690a38029828cbb4e15c21
Reviewed-on: https://chromium-review.googlesource.com/868951
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Reviewed-by: default avatarDmitry Gozman <dgozman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#529604}
parent 5c48792e
......@@ -1482,7 +1482,7 @@ SDK.DebuggerPausedDetails = class {
while (stack) {
if (stack.description === 'async function' && stack.callFrames.length)
stack.callFrames.shift();
if (previous && (!stack.callFrames.length && !stack.promiseCreationFrame))
if (previous && !stack.callFrames.length)
previous.parent = stack.parent;
else
previous = stack;
......
......@@ -185,8 +185,6 @@ Sources.CallStackSidebarPane = class extends UI.SimpleView {
createElementForItem(item) {
var element = createElementWithClass('div', 'call-frame-item');
var title = element.createChild('div', 'call-frame-item-title');
if (item.promiseCreationFrame)
title.createChild('div', 'call-frame-chained-arrow').textContent = '\u2935';
title.createChild('div', 'call-frame-title-text').textContent = this._itemTitle(item);
if (item.asyncStackHeader)
element.classList.add('async-header');
......@@ -260,8 +258,6 @@ Sources.CallStackSidebarPane = class extends UI.SimpleView {
return UI.beautifyFunctionName(item.debuggerCallFrame.functionName);
if (item.runtimeCallFrame)
return UI.beautifyFunctionName(item.runtimeCallFrame.functionName);
if (item.promiseCreationFrame)
return Common.UIString('chained at');
return item.asyncStackHeader || '';
}
......@@ -274,8 +270,8 @@ Sources.CallStackSidebarPane = class extends UI.SimpleView {
return item.debuggerCallFrame.location();
if (!item.debuggerModel)
return null;
if (item.runtimeCallFrame || item.promiseCreationFrame) {
var frame = item.runtimeCallFrame || item.promiseCreationFrame;
if (item.runtimeCallFrame) {
var frame = item.runtimeCallFrame;
return new SDK.DebuggerModel.Location(item.debuggerModel, frame.scriptId, frame.lineNumber, frame.columnNumber);
}
return null;
......@@ -405,8 +401,6 @@ Sources.CallStackSidebarPane = class extends UI.SimpleView {
_copyStackTrace() {
var text = [];
for (var item of this._items) {
if (item.promiseCreationFrame)
continue;
var itemText = this._itemTitle(item);
var location = this._itemLocation(item);
var uiLocation = location ? Bindings.debuggerWorkspaceBinding.rawLocationToUILocation(location) : null;
......@@ -435,7 +429,6 @@ Sources.CallStackSidebarPane._defaultMaxAsyncStackChainDepth = 32;
* debuggerCallFrame: (SDK.DebuggerModel.CallFrame|undefined),
* asyncStackHeader: (string|undefined),
* runtimeCallFrame: (Protocol.Runtime.CallFrame|undefined),
* promiseCreationFrame: (Protocol.Runtime.CallFrame|undefined),
* debuggerModel: (!SDK.DebuggerModel|undefined)
* }}
*/
......
......@@ -36,12 +36,6 @@
flex-wrap: wrap;
}
.call-frame-chained-arrow {
transform: rotate(180deg);
margin-right: 3px;
flex-shrink: 0;
}
.call-frame-title-text {
text-overflow: ellipsis;
overflow: hidden;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment