servo/components/style
bors-servo dd34b2a335 Auto merge of #14059 - mrnayak:refPolicy, r=nox
Network Security : Implement StrictOrigin and StrictOriginWhenCrossOr…

This pull request contains commit implementing initial steps for Improving Network Security project. As part of initial steps referer policy enums for strict-origin and strict-origin-when-cross-origin have been added to [hyper](https://github.com/hyperium/hyper/pull/943). Unit tests and additional logic has been added to handle these policies. Since enum changes are available on hyper version 0.9.11. We had to update hyper version to 0.9.11.

Hyper 0.9.11 depends on num_cpus 1.1.0. To avoid different version of num_cpus. We have updated rayon version from 0.4.0 to 0.4.3. Cargo.toml of util, style, geckolib, stylo component has been updated to use num_cpus version 1.1.0 instead of 0.2.2.

---
<!-- 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: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

…igin

Referer policy strict-origin and strict-origin-when-cross-origin changes have been implemented. Relevant unit test cases have been added. Enum for RefererPolicy has been added to hyper codebase and v 0.9.11 of hyper contains these changes.

This commit also contains changes related to upgrade of hyper from v0.9.10 to v0.9.11. Other dependencies changed are rayon, utils, num_cpus.

<!-- 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/14059)
<!-- Reviewable:end -->
2016-11-07 04:37:35 -06:00
..
binding_tools Auto merge of #14038 - upsuper:bug1294299, r=heycam 2016-11-03 23:42:06 -05:00
gecko Move LengthOrNumber to style/values and implement GeckoStyleCoordConvertible 2016-11-06 20:08:31 +03:00
gecko_bindings Auto merge of #14038 - upsuper:bug1294299, r=heycam 2016-11-03 23:42:06 -05:00
gecko_string_cache Auto merge of #14038 - upsuper:bug1294299, r=heycam 2016-11-03 23:42:06 -05:00
properties Prefer Servo-specific ToCss for all types 2016-11-07 09:14:22 +05:30
rule_tree rule tree: more descriptive field names 2016-11-05 17:29:56 +01:00
values Prefer Servo-specific ToCss for all types 2016-11-07 09:14:22 +05:30
animation.rs rule tree: Remove unsound transmute() 2016-11-05 17:29:54 +01:00
atomic_refcell.rs Implement AtomicRef::map. 2016-11-01 20:39:51 +01:00
attr.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
bezier.rs Move util::bezier to style 2016-02-14 19:45:24 +01:00
build.rs Run style with all properties enabled 2016-09-23 15:10:40 +05:30
cache.rs Remove usage of deprecated SipHasher. 2016-10-10 18:35:07 +02:00
Cargo.toml Network Security : Implement StrictOrigin and StrictOriginWhenCrossOrigin 2016-11-04 03:17:04 -04:00
cascade_info.rs style: Introduce a generic way of gathering information from the cascade, and use it for viewport units. 2016-08-16 10:58:16 -07:00
context.rs Concurrent rule tree, v1 2016-11-05 17:29:52 +01:00
custom_properties.rs Prefer Servo-specific ToCss for all types 2016-11-07 09:14:22 +05:30
data.rs Concurrent rule tree, v1 2016-11-05 17:29:52 +01:00
dom.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
element_state.rs Issue 7720: Add target selector and update when scrolling to fragment 2016-08-03 13:23:10 +01:00
error_reporting.rs Add some documentation to the style crate. 2016-06-27 17:33:14 +02:00
font_face.rs Update cssparser 2016-09-07 14:13:56 +08:00
keyframes.rs Add RwLock in more Arc’d things in stylesheets. 2016-10-19 19:55:05 +02:00
lib.rs Prefer Servo-specific ToCss for all types 2016-11-07 09:14:22 +05:30
logical_geometry.rs Migrated -Z trace-layout to serde_json 2016-11-07 15:54:07 +08:00
matching.rs Concurrent rule tree, v1 2016-11-05 17:29:52 +01:00
media_queries.rs Prefer Servo-specific ToCss for all types 2016-11-07 09:14:22 +05:30
owning_handle.rs Implement OwningHandle in style. 2016-10-13 16:53:37 -06:00
parallel.rs Concurrent rule tree, v1 2016-11-05 17:29:52 +01:00
parser.rs Add safer bindings for RefPtr 2016-10-14 00:44:06 +05:30
README.md docs: Add style overview. 2016-05-04 00:34:03 +02:00
refcell.rs Revert "Make DOMRefCell use style’s copy of RefCell" 2016-10-04 18:35:01 +02:00
restyle_hints.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
selector_impl.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
selector_matching.rs Concurrent rule tree, v1 2016-11-05 17:29:52 +01:00
sequential.rs Eliminate RestyleResult. 2016-11-01 11:03:04 -07:00
servo_selector_impl.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
sink.rs Move util::vec::ForgetfulSink to style::sink and simplify it 2016-07-04 16:48:14 +02:00
str.rs Move util::str to style 2016-07-05 10:43:54 +02:00
stylesheets.rs Update to string-cache 0.3 2016-11-03 16:23:05 +01:00
thread_state.rs Concurrent rule tree, v1 2016-11-05 17:29:52 +01:00
tid.rs Move util::tid to style 2016-07-05 10:36:38 +02:00
timer.rs style: Add a new Timer structure to the shared style context, and basic infrastructure for controlling animations. 2016-07-20 09:05:53 -07:00
traversal.rs Concurrent rule tree, v1 2016-11-05 17:29:52 +01:00
viewport.rs Prefer Servo-specific ToCss for all types 2016-11-07 09:14:22 +05:30
workqueue.rs style: Make WorkQueue creation fallible. 2016-08-25 23:43:31 -07:00

servo-style

Style system for Servo, using rust-cssparser for parsing.