aboutsummaryrefslogtreecommitdiffstats
path: root/components/util
Commit message (Collapse)AuthorAgeFilesLines
...
* adding default config dirsRahul Sharma2016-05-255-27/+96
|
* Parse HTMLInputElement attributesKeith Yeung2016-05-241-0/+4
|
* Move DOMString back to scriptAnthony Ramine2016-05-244-221/+2
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Update string_cache to 0.2.17Keith Yeung2016-05-231-1/+1
|
* replacing commas with tabs; changing from CSV to TSV profilingRohit Zambre2016-05-191-2/+2
|
* Auto merge of #11209 - evrimoztamur:patch-1, r=Ms2gerbors-servo2016-05-191-1/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove misleading nonexistant flag hint `./mach build -d` does not report any errors. `./mach test-tidy --faster` does not report any errors. The change fixes #11197. The change does not require tests because it is a small change that doesn't change any core functionality. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11209) <!-- Reviewable:end -->
| * Remove misleading nonexistant flag hintEvrim Öztamur2016-05-161-1/+0
| |
* | Remove unnecessary bounds on arc_ptr_eq.Ms2ger2016-05-171-1/+1
| |
* | Use num_traits in utilMatt Brubeck2016-05-173-3/+3
| |
* | Update internal crates to bitflags 0.7Anthony Ramine2016-05-171-1/+1
| |
* | Reorder dependencies in many Cargo.toml filesAnthony Ramine2016-05-171-3/+3
|/
* Remove unnecessary clone in LRUCache::touchMatt Brubeck2016-05-131-4/+4
|
* Eliminate unneeded clones in find_or_createMatt Brubeck2016-05-131-16/+15
| | | | ...and use it to eliminate duplicate hash lookups and string copies in shape_text.
* Auto merge of #11132 - mbrubeck:workqueue-panic, r=larsbergstrombors-servo2016-05-121-12/+1
|\ | | | | | | | | | | | | | | | | | | | | Fix integer overflow in next_power_of_two This causes a panic (debug) or incorrect results (release) when initializing a work queue with thread_count = 1. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11132) <!-- Reviewable:end -->
| * Fix integer overflow in next_power_of_twoMatt Brubeck2016-05-111-12/+1
| |
* | added infrastructure to handle interval and CSV time profiling alongside ↵Rohit Zambre2016-05-111-8/+25
|/ | | | html-timeline-profiling
* Update lazy_static, selectors, string_cache, futf, quickersortMatt Brubeck2016-05-021-1/+1
|
* Upgrade to bitflags 0.6.0 and selectors 0.5.6Matt Brubeck2016-04-302-2/+2
| | | | | Types generated by `bitflags!` are now private by default. This PR marks them `pub` where necessary.
* Auto merge of #10895 - mbrubeck:byteindex, r=pcwaltonbors-servo2016-04-281-38/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use byte indices instead of char indices for text runs Replace character indices with UTF-8 byte offsets throughout all code dealing with text runs. This eliminates a lot of complexity when converting from one to the other, and interoperates better with the rest of the Rust ecosystem. For most code this is just a simple replacement of char indices with byte indices. In a few places like glyph storage and text fragment scanning, it also lets us get rid of code that existed only to map between bytes and chars. Also includes some related fixes to text shaping, discovered while working on this conversion. See the commit messages for details. r? @pcwalton <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10895) <!-- Reviewable:end -->
| * Use byte indices instead of char indices for text runsMatt Brubeck2016-04-281-38/+1
| | | | | | | | | | | | | | Replace character indices with UTF-8 byte offsets throughout the code dealing with text shaping and breaking. This eliminates a lot of complexity when converting from one to the other, and interoperates better with the rest of the Rust ecosystem.
* | Add a method for dumping self-contained HTML timeline profilesNick Fitzgerald2016-04-271-1/+19
|/ | | | | | | This commit adds the `--profiler-trace-path` flag. When combined with `-p` to enable profiling, it dumps a profile as a self-contained HTML file to the given path. The profile visualizes the traced operations as a gant-chart style timeline.
* Auto merge of #10857 - servo:toml, r=noxbors-servo2016-04-261-11/+4
|\ | | | | | | | | | | | | | | | | | | | | | | Simplify TOML syntax * Sections like `[dependencies.foo]` can be entries in a `[dependencies]` section with the `{key = value}` syntax. * Per-target dependencies can be expressed with more general `cfg(…)` conditions instead of exact target triples: https://github.com/rust-lang/cargo/pull/2328 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10857) <!-- Reviewable:end -->
| * Simplify TOML syntaxSimon Sapin2016-04-261-11/+4
| | | | | | | | | | | | | | | | * Sections like `[dependencies.foo]` can be entries in a `[dependencies]` section with the `{key = value}` syntax. * Per-target dependencies can be expressed with more general `cfg(…)` conditions instead of exact target triples: https://github.com/rust-lang/cargo/pull/2328
* | Auto merge of #10847 - servo:rustup-20160424, r=noxbors-servo2016-04-261-1/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | Update rustc. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10847) <!-- Reviewable:end -->
| * | Update rustc.Ms2ger2016-04-261-1/+0
| |/
* | Auto merge of #10824 - asajeffrey:communicate-backtrace-on-panic, r=Manishearthbors-servo2016-04-264-30/+22
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Communicate a backtrace to the constellation when panicking. Send a representation of the backtrace from a pipeline thread to the constellation in the case of panic. This is the next step in communicating the backtrace to the browser chrome (#10334). <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10824) <!-- Reviewable:end -->
| * | Communicate a backtrace to the constellation when panicking.Alan Jeffrey2016-04-264-30/+22
| |/
* / Add parsing of double values in style attributesKeith Yeung2016-04-253-5/+58
|/
* Upgrade to rust-url 1.0 and hyper 0.9Simon Sapin2016-04-231-1/+1
|
* Auto merge of #10706 - zwn:unused-extern-crates, r=noxbors-servo2016-04-222-0/+3
|\ | | | | | | | | | | | | | | | | | | | | Turn on unused-extern-crates warning. As discussed in #9256. It should solve second half of the issue. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10706) <!-- Reviewable:end -->
| * Remove references to unused crates.Zbynek Winkler2016-04-221-0/+1
| | | | | | | | The cleanup is based on info from using "-W unused-extern-crates".
| * Silence unused-extern-crates false positives.Zbynek Winkler2016-04-221-0/+2
| | | | | | | | | | | | | | | | | | Added #[allow(unused_extern_crates)] to silence false positives * bitflags, lazy_static and matches because macro_use * alloc_jemalloc because builtin crate See https://github.com/rust-lang/rust/issues/30849
* | Remove extra definition of WHITESPACE under components/util/str.rszakorgyula2016-04-201-13/+9
| |
* | Added a dedicated panic channel.Alan Jeffrey2016-04-192-83/+24
|/
* Make `read_resource_file` param simpler and more idiomatic.Corey Farwell2016-04-161-5/+3
| | | | | `<P: AsRef<Path>>` is also what `File::open` uses as a generic type for the parameter.
* Remove watcher threads; replace with more panic handler goodnessManish Goregaokar2016-04-153-53/+110
|
* Make add_panic_object in thread.rs borrow rather than own the object.Alan Jeffrey2016-04-141-2/+2
|
* Auto merge of #10587 - asajeffrey:add-failure-panic-message, r=Manishearthbors-servo2016-04-141-8/+27
|\ | | | | | | | | | | | | | | | | | | | | Added panic message to failures. Added the panic message to failures. This is a step towards #10334, since it gives us access to the panic error message when we fire a `mozbrowsererror` event. The remaining steps are also to record the backtrace, and to report the failure in the event. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10587) <!-- Reviewable:end -->
| * Added panic message to failures.Alan Jeffrey2016-04-131-8/+27
| |
* | Remove the url! plugin.Simon Sapin2016-04-141-1/+1
| | | | | | | | | | | | | | | | In rust-url 1.0 the `Url` struct is going to have private fields, and there is no way to to create an aribitrary one without going through the parser. The plugin never had a clear demonstrated performance benefit, it was made mostly because it was possible and relatively easy at the time.
* | Share prefs to content processesUlf Nilsson2016-04-121-2/+6
|/ | | | | | Without this `./mach run -b -- -M` would start fine but navigating to a site would fail with: `thread 'ScriptThread PipelineId { namespace_id: PipelineNamespaceId(0), index: PipelineIndex(0) }' panicked at 'assertion failed: mozbrowser_enabled()', /Users/ulf/Documents/Code/servo/components/script/dom/htmliframeelement.rs:163`
* Issue #10491 add HTMLInputElement attributes that reflect content identicallyArnaud Marant2016-04-121-1/+1
| | | | it uses a new version of string-cache https://github.com/servo/string-cache/pull/148
* Auto merge of #10445 - metajack:enable-asmjs, r=jdmbors-servo2016-04-121-2/+16
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Use better JS engine defaults This adds in preferences for all the SM 39 available options (as retrieved from Gecko), and uses the same defaults as Gecko. A few properties are not supported yet, and incremental GC is still always disabled regardless of the preference setting. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10445) <!-- Reviewable:end -->
| * Use better JS engine defaultsJack Moffitt2016-04-081-2/+16
| | | | | | | | | | | | | | | | | | | | | | This adds in preferences for all the SM 39 available options (as retrieved from Gecko), and uses the same defaults as Gecko. A few properties are not supported yet, and incremental GC is still always disabled regardless of the preference setting. This also adds back in the options that were accidentally deleted when \#10342 was rebased, which moved things from script_thread.rs to script_runtime.rs.
* | Fix sandboxing on OS XUlf Nilsson2016-04-091-24/+25
|/ | | | | | The main issue was resources_dir_path. Every time it was called it would start from the executable's path and walk up the hierarchy to find a directory named "resources". The sandbox was granted permission to read from the found resources dir, but after the sandbox had been activated resources_dir_path would again start from the executable's path and try to find the resources dir. It would then fail with "Operation not permitted" when trying to canonicalize the path because it didn't have permissions to read metadata under ./target. To fix this the resources dir path is now cached between resources_dir_path calls.
* Rename handler to hookUK9922016-04-081-7/+6
|
* Remove str_to_string lintManish Goregaokar2016-04-081-1/+0
| | | | Specialization makes all of the options equally efficient.
* Auto merge of #10420 - asajeffrey:add-soft-fail-option, r=KiChjangbors-servo2016-04-071-1/+2
|\ | | | | | | | | | | | | | | | | | | | | Added --soft-fail option. At the moment, wptrunner always runs the WPT tests with `servo --hard-fail`. To test hardening, we need to switch off `--hard-fail`. This PR introduces a `--soft-fail` option to do that. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10420) <!-- Reviewable:end -->
| * Added --soft-fail option.Alan Jeffrey2016-04-041-1/+2
| |
* | Remove some unused dependencies from util.Ms2ger2016-04-062-9/+0
| |