mirror of
https://github.com/servo/servo.git
synced 2025-08-24 06:45:33 +01:00
Auto merge of #19211 - KiChjang:text-decoration-line, r=emilio
Move text-decoration-line out of mako Part of #19015. <!-- 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/19211) <!-- Reviewable:end -->
This commit is contained in:
commit
6f1d9a198f
10 changed files with 172 additions and 147 deletions
|
@ -3373,10 +3373,10 @@ pub extern "C" fn Servo_DeclarationBlock_SetTextDecorationColorOverride(
|
|||
declarations: RawServoDeclarationBlockBorrowed,
|
||||
) {
|
||||
use style::properties::PropertyDeclaration;
|
||||
use style::properties::longhands::text_decoration_line;
|
||||
use style::values::specified::text::TextDecorationLine;
|
||||
|
||||
let mut decoration = text_decoration_line::computed_value::none;
|
||||
decoration |= text_decoration_line::SpecifiedValue::COLOR_OVERRIDE;
|
||||
let mut decoration = TextDecorationLine::none();
|
||||
decoration |= TextDecorationLine::COLOR_OVERRIDE;
|
||||
let decl = PropertyDeclaration::TextDecorationLine(decoration);
|
||||
write_locked_arc(declarations, |decls: &mut PropertyDeclarationBlock| {
|
||||
decls.push(decl, Importance::Normal, DeclarationSource::CssOm);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue