mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Remove unused argument to adjust_clipping_region_for_children
This commit is contained in:
parent
eda8784c34
commit
cac06e579c
3 changed files with 4 additions and 8 deletions
|
@ -1921,8 +1921,7 @@ impl Flow for BlockFlow {
|
|||
CoordinateSystem::Own);
|
||||
self.fragment.adjust_clipping_region_for_children(
|
||||
&mut clip,
|
||||
&stacking_relative_border_box,
|
||||
self.base.flags.contains(IS_ABSOLUTELY_POSITIONED));
|
||||
&stacking_relative_border_box);
|
||||
|
||||
// Process children.
|
||||
for kid in self.base.child_iter() {
|
||||
|
|
|
@ -229,8 +229,7 @@ pub trait FragmentDisplayListBuilding {
|
|||
/// Adjusts the clipping region for descendants of this fragment as appropriate.
|
||||
fn adjust_clipping_region_for_children(&self,
|
||||
current_clip: &mut ClippingRegion,
|
||||
stacking_relative_border_box: &Rect<Au>,
|
||||
is_absolutely_positioned: bool);
|
||||
stacking_relative_border_box: &Rect<Au>);
|
||||
|
||||
/// Adjusts the clipping rectangle for a fragment to take the `clip` property into account
|
||||
/// per CSS 2.1 § 11.1.2.
|
||||
|
@ -1439,8 +1438,7 @@ impl FragmentDisplayListBuilding for Fragment {
|
|||
|
||||
fn adjust_clipping_region_for_children(&self,
|
||||
current_clip: &mut ClippingRegion,
|
||||
stacking_relative_border_box: &Rect<Au>,
|
||||
is_absolutely_positioned: bool) {
|
||||
stacking_relative_border_box: &Rect<Au>) {
|
||||
// Don't clip if we're text.
|
||||
if self.is_scanned_text_fragment() {
|
||||
return
|
||||
|
|
|
@ -1682,8 +1682,7 @@ impl Flow for InlineFlow {
|
|||
fragment.stacking_relative_content_box(&stacking_relative_border_box);
|
||||
let mut clip = self.base.clip.clone();
|
||||
fragment.adjust_clipping_region_for_children(&mut clip,
|
||||
&stacking_relative_border_box,
|
||||
false);
|
||||
&stacking_relative_border_box);
|
||||
let is_positioned = fragment.is_positioned();
|
||||
match fragment.specific {
|
||||
SpecificFragmentInfo::InlineBlock(ref mut info) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue