mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #20533 - paulrouget:res, r=mbrubeck
Delegate resource reading to embedder Now the embedder provides the content of the files itself. Now, on Android, we can use regular assets instead of unzipping all the resources on the scared at startup. --- <!-- 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 - [ ] `./mach build-geckolib` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #15635 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/20533) <!-- Reviewable:end -->
This commit is contained in:
commit
d1378d6bad
52 changed files with 472 additions and 396 deletions
|
@ -13,6 +13,7 @@ doctest = false
|
|||
byteorder = "1.0"
|
||||
app_units = "0.6"
|
||||
cssparser = "0.23.0"
|
||||
embedder_traits = {path = "../../../components/embedder_traits"}
|
||||
euclid = "0.17"
|
||||
html5ever = "0.22"
|
||||
parking_lot = "0.5"
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
extern crate app_units;
|
||||
extern crate cssparser;
|
||||
extern crate embedder_traits;
|
||||
extern crate euclid;
|
||||
#[macro_use] extern crate html5ever;
|
||||
extern crate parking_lot;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use cssparser::{self, SourceLocation};
|
||||
use embedder_traits::resources::register_resources_for_tests;
|
||||
use html5ever::{Namespace as NsAtom};
|
||||
use media_queries::CSSErrorReporterTest;
|
||||
use parking_lot::RwLock;
|
||||
|
@ -321,6 +322,7 @@ impl ParseErrorReporter for TestingErrorReporter {
|
|||
|
||||
#[test]
|
||||
fn test_report_error_stylesheet() {
|
||||
register_resources_for_tests();
|
||||
PREFS.set("layout.viewport.enabled", PrefValue::Boolean(true));
|
||||
let css = r"
|
||||
div {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue