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

@ -1215,8 +1215,8 @@ impl Flow for InlineFlow {
_ => continue,
};
let clip_rect = fragment.clip_rect_for_children(self.base.clip_rect,
stacking_relative_position);
let clip_rect = fragment.clip_rect_for_children(&self.base.clip_rect,
&stacking_relative_position);
match fragment.specific {
SpecificFragmentInfo::InlineBlock(ref mut info) => {