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

layout: Modify styles for replaced content as appropriate during incremental flow construction. #6492

Merged
merged 4 commits into from Jul 7, 2015
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

layout: Modify styles for replaced content as appropriate during

incremental flow construction.

Fixes jumpiness on lots of Web sites.
  • Loading branch information
pcwalton committed Jul 7, 2015
commit 24f10df436fdd1b6fdf197f76feb89135b72f25d
@@ -1249,7 +1249,7 @@ impl<'a> FlowConstructor<'a> {

let mut layout_data_ref = node.mutate_layout_data();
let layout_data = layout_data_ref.as_mut().expect("no layout data");
let style = (*node.get_style(&layout_data)).clone();
let mut style = (*node.get_style(&layout_data)).clone();
let damage = layout_data.data.restyle_damage;
match node.construction_result_mut(layout_data) {
&mut ConstructionResult::None => true,
@@ -1297,8 +1297,10 @@ impl<'a> FlowConstructor<'a> {
.repair_style_and_bubble_inline_sizes(&style);
}
_ => {
if node.is_replaced_content() {
properties::modify_style_for_replaced_content(&mut style);
}
fragment.repair_style(&style);
return true
}
}
}
@@ -169,6 +169,7 @@ experimental == iframe/size_attributes_vertical_writing_mode.html iframe/size_at
== inset.html inset_ref.html
!= inset_blackborder.html blackborder_ref.html
== issue-1324.html issue-1324-ref.html
== jumpiness_a.html jumpiness_ref.html
== last_child_pseudo_a.html last_child_pseudo_b.html
== last_of_type_pseudo_a.html last_of_type_pseudo_b.html
== legacy_cellspacing_attribute_a.html border_spacing_ref.html
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<style>
body.hello {
text-decoration: underline;
}
</style>
</head>
<body>
a
<script>
setTimeout(function() {
document.body.classList.add('hello');
}, 0);
</script>
</body>
</html>

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<style>
body {
text-decoration: underline;
}
</style>
</head>
<body>
a
</body>
</html>


ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.