layout: Implement clip per CSS 2.1 § 11.1.2.

Only the recommended, comma-separated syntax is supported.
This commit is contained in:
Patrick Walton 2014-12-16 11:19:37 -08:00
parent 4ccecd8dca
commit 6b28965b94
11 changed files with 261 additions and 30 deletions

View file

@ -1774,8 +1774,8 @@ impl Flow for BlockFlow {
} else {
self.base.stacking_relative_position
};
let clip_rect = self.fragment.clip_rect_for_children(self.base.clip_rect,
origin_for_children);
let clip_rect = self.fragment.clip_rect_for_children(&self.base.clip_rect,
&origin_for_children);
// Process children.
let writing_mode = self.base.writing_mode;