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:
bors-servo 2017-11-14 15:34:10 -06:00 committed by GitHub
commit 6f1d9a198f
10 changed files with 172 additions and 147 deletions

View file

@ -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);