servo/components/script
bors-servo 7cc0af37cf Auto merge of #18512 - tromey:preserve-style-sheet-source-url, r=SimonSapin
Preserve sourceURL comment on style sheets

In addition to the sourceMappingURL comment, there is a second special
comment, "sourceURL", that can be used to set the "display name" of a
style sheet for developer tools.  This name is also used as the base
URL for the source-map URL resolution algorithm.  sourceURL is
described here:
https://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/
The devtools feature bug is here:
https://bugzilla.mozilla.org/show_bug.cgi?id=880831

This patch changes servo to preserve and expose this value for use in M-C.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18512)
<!-- Reviewable:end -->
2017-09-15 08:07:49 -05:00
..
docs Make #[dom_struct] a proc_macro attribute 2017-02-24 01:50:51 +01:00
dom Auto merge of #18512 - tromey:preserve-style-sheet-source-url, r=SimonSapin 2017-09-15 08:07:49 -05:00
task_source Reformat some task-related functions 2017-09-08 10:19:06 +02:00
body.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
build.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
Cargo.toml Preserve sourceURL comment on style sheets 2017-09-14 12:39:18 -06:00
clipboard_provider.rs make use of ScriptToConstellationChan 2017-08-15 08:22:09 +02:00
CMakeLists.txt
devtools.rs Added some same-origin-domain checks. 2017-03-14 14:36:03 -05:00
document_loader.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
fetch.rs Change RequestInit origin type to ImmutableOrigin 2017-07-16 21:44:33 +02:00
layout_image.rs Change RequestInit origin type to ImmutableOrigin 2017-07-16 21:44:33 +02:00
lib.rs style: Remove NODE_NEEDS_DIRTY_ON_VIEWPORT_SIZE_CHANGE. 2017-08-28 14:40:48 +02:00
mem.rs Rename Reflectable to DomObject. 2016-12-08 08:50:35 -10:00
microtask.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
network_listener.rs Separate the async bluetooth handling from networking code. 2016-12-21 14:52:39 +01:00
script_runtime.rs Make Performance Timeline API work in Workers 2017-09-05 17:07:15 +02:00
script_thread.rs Store a Rc<MicrotaskQueue> directly on Window 2017-09-13 14:27:45 +02:00
serviceworker_manager.rs remove extra spaces after keywords 2017-07-20 00:45:02 +03:00
serviceworkerjob.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
stylesheet_loader.rs Preserve sourceURL comment on style sheets 2017-09-14 12:39:18 -06:00
test.rs script: Move the layout_wrapper outside of script. 2017-07-15 16:41:12 +02:00
textinput.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
timers.rs order derivable traits lists 2017-08-23 21:38:44 +02:00
unpremultiplytable.rs
webdriver_handlers.rs Replace downcast with is 2017-08-02 21:51:17 +02:00