servo/components/layout
bors-servo 9d32b9cc35 Auto merge of #16317 - eloycoto:issue6799, r=emilio
Fix #6799: set stacking_context_position correctly on fragment_border_iterator

Hey,

First of all, this is my first PR to Servo project and I'm learning Rust, so sorry if you see something that it's not correct. I did that as best as I know.

This PR fix the issue #6799; I tried all the corner cases that I can think about it and always get the right result and the same as other browsers.

Related to the build:

- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #6799

In the other hand, I added the test in the cssom folder, is where getBoundingClientRect  is defined, so I think that is the best place.

I'm sure that the line 122 can be better, but I didn't find a way to transform a Point2D from f32 to px in a easy way.

I'm here to listen to your recommendations and fix any issue.
Thanks!

<!-- 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/16317)
<!-- Reviewable:end -->
2017-05-30 11:28:26 -05:00
..
animation.rs style: Avoid some cfg checks in context.rs 2017-05-29 23:24:06 +02:00
block.rs Fix #6799: set stacking_context_position correctly on 2017-05-30 09:38:37 +02:00
Cargo.toml Decode UTF-8 code points across network packets 2017-05-27 09:01:45 +02:00
construct.rs layout: Stop doing unsafe transmutes between refcell references. 2017-05-25 10:31:40 +02:00
context.rs Use the origin of the actual image response when determining if a canvas is origin clean. 2017-05-19 09:38:50 -04:00
data.rs layout: Stop doing unsafe transmutes between refcell references. 2017-05-25 10:31:40 +02:00
display_list_builder.rs Auto merge of #16317 - eloycoto:issue6799, r=emilio 2017-05-30 11:28:26 -05:00
flex.rs Refactor how calc() clamping is done on computed values (fixes #15296) 2017-05-18 10:14:59 +02:00
floats.rs Update app_units to 0.4.1 2017-05-19 20:33:02 -07:00
flow.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
flow_list.rs Update serde to 0.9 (fixes #15325) 2017-02-18 21:09:46 +01:00
flow_ref.rs Migrated -Z trace-layout to serde_json 2016-11-07 15:54:07 +08:00
fragment.rs Update app_units to 0.4.1 2017-05-19 20:33:02 -07:00
generated_content.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
incremental.rs Force reflow in the sequential fallback of block format context 2017-04-23 08:32:25 +08:00
inline.rs Auto merge of #16999 - bzbarsky:fix-text-overflow-handling, r=Manishearth 2017-05-23 20:39:24 -05:00
layout_debug.rs Update serde to 0.9 (fixes #15325) 2017-02-18 21:09:46 +01:00
lib.rs layout: Stop doing unsafe transmutes between refcell references. 2017-05-25 10:31:40 +02:00
linked_list.rs Move util::linked_list to layout 2016-06-29 17:23:04 +02:00
list_item.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
model.rs Rename BorderRadiusSize to BorderCornerSize 2017-05-29 00:58:53 +02:00
multicol.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
opaque_node.rs Introduce LayoutJS<Node>::opaque() to replace OpaqueNodeMethods::from_jsmanaged(). 2016-06-20 19:08:02 +02:00
parallel.rs Rewrite parallel.rs to be not slow. 2017-05-21 07:45:39 +02:00
persistent_list.rs Move util::persistent_list to layout 2016-02-20 19:20:38 +01:00
query.rs Properly handle scroll offsets in hit testing 2017-05-16 15:27:09 +02:00
sequential.rs Fix #6799: set stacking_context_position correctly on 2017-05-30 09:38:37 +02:00
table.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
table_caption.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
table_cell.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
table_colgroup.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
table_row.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
table_rowgroup.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
table_wrapper.rs Fix up script and layout. 2017-05-02 17:35:45 -07:00
text.rs [gfx] [layout] [style] Upgrade unicode-bidi to 0.3 2017-05-22 20:06:19 -05:00
traversal.rs Eliminate ScrollRootId 2017-04-20 08:51:38 +02:00
webrender_helpers.rs Using TransformStyle::Preserve3D 2017-05-16 11:08:32 -04:00
wrapper.rs layout: Stop doing unsafe transmutes between refcell references. 2017-05-25 10:31:40 +02:00