what do you think about splitting this out into DocumentMapping.js?
2 comments:
File third_party/WebKit/Source/devtools/front_end/bindings/ResourceMapping.js:
Patch Set #2, Line 293: var content = await this._uiSourceCode.requestContent();
This techincally works as is, but I'm a bit scared of an async function on an event.
File third_party/WebKit/Source/devtools/front_end/sdk/CSSStyleSheetHeader.js:
Patch Set #2, Line 28: this.editiedStartColumn = this.startColumn;
This won't work if you reload devtools after editing. Fixing that requires requesting a lot of content.
To view, visit change 875010. To unsubscribe, or for help writing mail filters, visit settings.
This looks pretty involved. Let's think more :)
2 comments:
File third_party/WebKit/Source/devtools/front_end/bindings/ResourceMapping.js:
Patch Set #2, Line 318: Bindings.cssWorkspaceBinding.updateLocations(style);
Won't this happen automatically? I think we should throttle it somehow due to many places calling it again and again.
File third_party/WebKit/Source/devtools/front_end/sdk/CSSStyleSheetHeader.js:
Patch Set #2, Line 28: this.editiedStartColumn = this.startColumn;
This won't work if you reload devtools after editing. […]
We can store this together with stylesheet content on backend. WDYT?
To view, visit change 875010. To unsubscribe, or for help writing mail filters, visit settings.
2 comments:
File third_party/WebKit/Source/devtools/front_end/bindings/ResourceMapping.js:
Patch Set #2, Line 318: continue;
Won't this happen automatically? I think we should throttle it somehow due to many places calling it […]
All things that call this are throttled, so I think we are ok.
File third_party/WebKit/Source/devtools/front_end/sdk/CSSStyleSheetHeader.js:
Patch Set #2, Line 28: this.setSourceMapURL(payload.sourceMapURL);
We can store this together with stylesheet content on backend. […]
We talked about it offline and and decided to do it on the front end to avoid linking the CSS and JS backends, but isolating this code to bindings.
To view, visit change 875010. To unsubscribe, or for help writing mail filters, visit settings.
This looks good overall. Let's test it :)