mirror of
https://github.com/servo/servo.git
synced 2025-08-15 18:35:33 +01:00
Propagate text decoration where needed
This commit is contained in:
parent
83fc9943d3
commit
17948f3b39
9 changed files with 75 additions and 40 deletions
|
@ -133,7 +133,7 @@ impl Fragment {
|
|||
|
||||
// Underline.
|
||||
if fragment
|
||||
.text_decorations_in_effect
|
||||
.text_decoration_line
|
||||
.contains(TextDecorationLine::UNDERLINE)
|
||||
{
|
||||
let mut rect = rect;
|
||||
|
@ -144,7 +144,7 @@ impl Fragment {
|
|||
|
||||
// Overline.
|
||||
if fragment
|
||||
.text_decorations_in_effect
|
||||
.text_decoration_line
|
||||
.contains(TextDecorationLine::OVERLINE)
|
||||
{
|
||||
let mut rect = rect;
|
||||
|
@ -164,7 +164,7 @@ impl Fragment {
|
|||
|
||||
// Line-through.
|
||||
if fragment
|
||||
.text_decorations_in_effect
|
||||
.text_decoration_line
|
||||
.contains(TextDecorationLine::LINE_THROUGH)
|
||||
{
|
||||
let mut rect = rect;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue