Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propogate transformed clipping regions to nested flows. #10579

Merged
merged 1 commit into from Apr 13, 2016

Conversation

@notriddle
Copy link
Contributor

notriddle commented Apr 13, 2016

Fixes #10559


This change is Reviewable

@@ -1965,7 +1965,48 @@ impl Flow for BlockFlow {

flow::mut_base(kid).late_absolute_position_info =
late_absolute_position_info_for_children;
flow::mut_base(kid).clip = clip.clone();
let clip = if kid.class() == FlowClass::Block {

This comment has been minimized.

@pcwalton

pcwalton Apr 13, 2016

Contributor

Why not use flow.is_block_like()? That'll catch tables and stuff too.

This comment has been minimized.

@notriddle

notriddle Apr 13, 2016

Author Contributor

OK.

};
}
}
let tmp;

This comment has been minimized.

@pcwalton

pcwalton Apr 13, 2016

Contributor

I think I'd prefer a different variable name. clipping_region or something?

@jdm jdm assigned pcwalton and unassigned Ms2ger Apr 13, 2016
@notriddle
Copy link
Contributor Author

notriddle commented Apr 13, 2016

Fixed both complaints.

@pcwalton
Copy link
Contributor

pcwalton commented Apr 13, 2016

@bors-servo: r+

Thanks!

@bors-servo
Copy link
Contributor

bors-servo commented Apr 13, 2016

📌 Commit 3c2210c has been approved by pcwalton

@bors-servo
Copy link
Contributor

bors-servo commented Apr 13, 2016

Testing commit 3c2210c with merge 84f01d1...

bors-servo added a commit that referenced this pull request Apr 13, 2016
Propogate transformed clipping regions to nested flows.

Fixes #10559

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10579)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Apr 13, 2016

💔 Test failed - linux-rel

@notriddle
Copy link
Contributor Author

notriddle commented Apr 13, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Apr 13, 2016

Previous build results for android, arm32, arm64, linux-dev, mac-dev-unit, mac-rel-css, mac-rel-wpt are reusable. Rebuilding only linux-rel...

@bors-servo
Copy link
Contributor

bors-servo commented Apr 13, 2016

@bors-servo bors-servo merged commit 3c2210c into servo:master Apr 13, 2016
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@notriddle notriddle deleted the notriddle:overflow_premature_clip branch Apr 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.