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

style: Remove TNode::set_can_be_fragmented and TNode::can_be_fragmented. #18893

Merged
merged 4 commits into from Jan 5, 2018
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: Simplify some ComputedValueFlags setters.

  • Loading branch information
emilio committed Jan 4, 2018
commit 10a1e1e15f713756ebb38509d619abb3c79a1f25
@@ -2752,16 +2752,16 @@ impl<'a> StyleBuilder<'a> {
% endif

% if not property.style_struct.inherited:
self.flags.insert(::properties::computed_value_flags::ComputedValueFlags::INHERITS_RESET_STYLE);
self.flags.insert(ComputedValueFlags::INHERITS_RESET_STYLE);
self.modified_reset = true;
% endif

% if property.ident == "content":
self.flags.insert(::properties::computed_value_flags::ComputedValueFlags::INHERITS_CONTENT);
self.flags.insert(ComputedValueFlags::INHERITS_CONTENT);
% endif

% if property.ident == "display":
self.flags.insert(::properties::computed_value_flags::ComputedValueFlags::INHERITS_DISPLAY);
self.flags.insert(ComputedValueFlags::INHERITS_DISPLAY);
% endif

self.${property.style_struct.ident}.mutate()
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.