mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Auto merge of #17722 - upsuper:ruby-fixup, r=heycam,bz
Implement style adjustments for ruby This is the Servo side changes of [bug 1378287](https://bugzilla.mozilla.org/show_bug.cgi?id=1378287) and [bug 1364274](https://bugzilla.mozilla.org/show_bug.cgi?id=1364274). <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17722) <!-- Reviewable:end -->
This commit is contained in:
commit
18c5ba108d
10 changed files with 206 additions and 56 deletions
|
@ -301,7 +301,6 @@ trait PrivateMatchMethods: TElement {
|
|||
new_values: &Arc<ComputedValues>,
|
||||
pseudo: Option<&PseudoElement>)
|
||||
-> ChildCascadeRequirement {
|
||||
use properties::computed_value_flags::*;
|
||||
// Don't accumulate damage if we're in a restyle for reconstruction.
|
||||
if shared_context.traversal_flags.for_reconstruct() {
|
||||
return ChildCascadeRequirement::MustCascadeChildren;
|
||||
|
@ -327,10 +326,8 @@ trait PrivateMatchMethods: TElement {
|
|||
match difference.change {
|
||||
StyleChange::Unchanged => {
|
||||
// We need to cascade the children in order to ensure the
|
||||
// correct propagation of text-decoration-line, which is a reset
|
||||
// property.
|
||||
if old_values.flags.contains(HAS_TEXT_DECORATION_LINE) !=
|
||||
new_values.flags.contains(HAS_TEXT_DECORATION_LINE) {
|
||||
// correct propagation of computed value flags.
|
||||
if old_values.flags != new_values.flags {
|
||||
return ChildCascadeRequirement::MustCascadeChildren;
|
||||
}
|
||||
ChildCascadeRequirement::CanSkipCascade
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue