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

stylo: Stop restyling display: none elements, remove the has_changed hack that made us use ReconstructFrame unconditionally. #12757

Merged
merged 12 commits into from Aug 11, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

style: Remove misleading comment.

can_be_fragmented is just a flag in Servo, and a no-op in Gecko.
  • Loading branch information
emilio committed Aug 9, 2016
commit 880d1120a319b21b5f74bd0672b2e27923a4b125
@@ -718,7 +718,8 @@ pub trait MatchMethods : TNode {
context: &Ctx,
parent: Option<Self>,
applicable_declarations: &ApplicableDeclarations)
where Ctx: StyleContext<'a> {
where Ctx: StyleContext<'a>
{
// Get our parent's style. This must be unsafe so that we don't touch the parent's
// borrow flags.
//
@@ -790,8 +791,6 @@ pub trait MatchMethods : TNode {
damage
};

// This method needs to borrow the data as mutable, so make sure data_ref goes out of
// scope first.
self.set_can_be_fragmented(parent.map_or(false, |p| {
p.can_be_fragmented() ||
parent_style.as_ref().unwrap().is_multicol()
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.