servo/components
bors-servo 5357f05ff7 Auto merge of #14509 - canaltinova:position, r=Manishearth
Implement background-position-x/y

<!-- Please describe your changes on the following line: -->
This is a WIP PR. Just HorizontalPosition / VerticalPosition implementations are complete. I would like to get early feedbacks about this architecture. Here's some architectural topics to consider:

- I created `HorizontalPosition` and `VerticalPosition` structs for this and used them in `Position` as well. We have decided to split `Keyword` enum, but we need them as unified for `PositionComponent` enum. So I didn't split but I can split it if we prefer to change PositionComponent as well.
- If we prefer Keyword enum like this, we can create a SubPosition(or something like this) instead of HorizontalPosition/VerticalPosition enums since only difference is 2 lines in `parse` functions. We can create a `parse_horizontal` and `parse_vertical` instead and a lot of code duplication can be cleared.
- I couldn't find a good way to use HorizontalPosition/VerticalPosition's parse functions in `Position`'s parse function. It is a bit more complicated. I'm open to suggestions :)
- I don't know much about logical keywords so do I need to do something different? I placed some comments where logical keywords are processing.

Any advice about these?

---
<!-- 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
- [X] These changes fix #14458 (github issue number if applicable).

<!-- Either: -->
- [X] There are tests for these changes

<!-- 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/14509)
<!-- Reviewable:end -->
2016-12-15 12:15:06 -08:00
..
atoms Use PropertyId instead of Atom for CSSStyleDeclaration::get_computed_style 2016-12-09 17:06:50 -10:00
bluetooth Bluetooth manager cleanup 2016-12-15 19:06:00 +03:00
bluetooth_traits Auto merge of #14592 - asajeffrey:util-goodbye, r=mbrubeck 2016-12-14 16:48:42 -08:00
canvas Update WR (typed units, glyph cache, various features). 2016-12-15 12:11:51 +10:00
canvas_traits Remove old shaders, updates for WR feature and API changes. 2016-11-25 06:28:21 +10:00
compositing Auto merge of #14597 - gterzian:fix_scroll_transactions, r=mbrubeck 2016-12-14 22:58:55 -08:00
config Removed util. 2016-12-14 18:04:37 -06:00
constellation Removed util. 2016-12-14 18:04:37 -06:00
debugger Removed util. 2016-12-14 18:04:37 -06:00
devtools Removed util. 2016-12-14 18:04:37 -06:00
devtools_traits Urlmageddon: Use refcounted urls more often. 2016-11-17 18:34:23 +01:00
geometry Removed util. 2016-12-14 18:04:37 -06:00
gfx Auto merge of #14588 - servo:log-font-face, r=jdm 2016-12-14 21:29:10 -08:00
gfx_traits
jstraceable_derive Mark JSTraceable and its method as unsafe 2016-12-06 13:15:06 -10:00
layout Auto merge of #14509 - canaltinova:position, r=Manishearth 2016-12-15 12:15:06 -08:00
layout_thread Update WR (typed units, glyph cache, various features). 2016-12-15 12:11:51 +10:00
layout_traits Make the layout content process shutdown sender optional. 2016-11-30 01:24:45 +01:00
msg Auto merge of #14286 - gterzian:update_canvas_with_offscreen_context, r=jdm 2016-11-24 12:29:52 -08:00
net Auto merge of #14586 - deror1869107:Remove-ResponseAction, r=jdm 2016-12-14 20:34:01 -08:00
net_traits Removed util. 2016-12-14 18:04:37 -06:00
plugins Remove HeapGCValue 2016-12-12 10:47:54 -10:00
profile Removed util. 2016-12-14 18:04:37 -06:00
profile_traits Removed util. 2016-12-14 18:04:37 -06:00
range
remutex Removed util. 2016-12-14 18:04:37 -06:00
script Auto merge of #14509 - canaltinova:position, r=Manishearth 2016-12-15 12:15:06 -08:00
script_layout_interface Auto merge of #14535 - servo:property-id, r=mbrubeck 2016-12-10 01:16:26 -08:00
script_traits Add support for fullscreen #10102 2016-12-09 11:45:50 +01:00
servo Update WR (typed units, glyph cache, various features). 2016-12-15 12:11:51 +10:00
style Auto merge of #14509 - canaltinova:position, r=Manishearth 2016-12-15 12:15:06 -08:00
style_traits
url Removed util. 2016-12-14 18:04:37 -06:00
webdriver_server Removed util. 2016-12-14 18:04:37 -06:00