MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / undo

Method undo

front_end/core/sdk/DOMModel.ts:2265–2272  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2263 }
2264
2265 async undo(): Promise<void> {
2266 if (this.#index === 0) {
2267 return await Promise.resolve();
2268 }
2269 --this.#index;
2270 this.#lastModelWithMinorChange = null;
2271 await this.#stack[this.#index].getAgent().invoke_undo();
2272 }
2273
2274 async redo(): Promise<void> {
2275 if (this.#index >= this.#stack.length) {

Callers 4

bringBackFunction · 0.80
expandedCallbackFunction · 0.80
undoSourceEditingFunction · 0.80
handleActionMethod · 0.80

Calls 3

invoke_undoMethod · 0.80
resolveMethod · 0.65
getAgentMethod · 0.45

Tested by

no test coverage detected