aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/console.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2015-04-14 12:13:13 -0700
committerPatrick Walton <pcwalton@mimiga.net>2015-04-14 13:00:10 -0700
commitacd08c67c63a9fb4d46e50411e134a1c6667ad89 (patch)
tree233ccca2b881308bc6b8006dc3667df880e7d542 /components/script/dom/console.rs
parentfe81ce942a36b08ece8ef6d58de72624a961eeaa (diff)
downloadservo-acd08c67c63a9fb4d46e50411e134a1c6667ad89.tar.gz
servo-acd08c67c63a9fb4d46e50411e134a1c6667ad89.zip
layout: Use the same code path for computing static positions of regular
flows and static positions of hypothetical boxes. Before this change, Servo used one code path that computed the position of flows with `position: static` or `position: relative` and another separate code path that computed the position of flows with `position: absolute` or `position: fixed`. The latter code attempted to duplicate the former code to determine the static position of hypothetical boxes, but this was both fragile and incorrect in the case of hypothetical boxes nested inside floats. In fact, it's impossible to determine the static position of an absolute flow relative to its containing block at inline-size assignment time, because that static position could depend on a float that cannot be placed until block-size assignment! This patch changes block layout to use the same code path for static positioning of regular flows and static positioning of absolute flows where applicable. This both simplifies the code and improves its efficiency, since it allows the `hypothetical_position` field and `static_block_offsets` data structure to be removed. Moreover, it improves correctness in the above case (which the new reftest checks). This allows the sidebar in Facebook Timeline to be positioned properly.
Diffstat (limited to 'components/script/dom/console.rs')
0 files changed, 0 insertions, 0 deletions