mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update WR (text-shadow improvements, iframe + image clips, depth buffer sharing).
Push multiple text shadows in the order WR expects them.
This commit is contained in:
parent
2aa34f9dc2
commit
1b354994f6
2 changed files with 28 additions and 29 deletions
|
@ -2080,7 +2080,6 @@ impl FragmentDisplayListBuilding for Fragment {
|
|||
stacking_relative_content_box: &Rect<Au>,
|
||||
text_shadows: &[SimpleShadow],
|
||||
clip: &Rect<Au>) {
|
||||
|
||||
// NB: The order for painting text components (CSS Text Decoration Module Level 3) is:
|
||||
// shadows, underline, overline, text, text-emphasis, and then line-through.
|
||||
|
||||
|
@ -2124,7 +2123,7 @@ impl FragmentDisplayListBuilding for Fragment {
|
|||
// to back).
|
||||
|
||||
// Shadows
|
||||
for shadow in text_shadows.iter().rev() {
|
||||
for shadow in text_shadows.iter() {
|
||||
state.add_display_item(DisplayItem::PushTextShadow(box PushTextShadowDisplayItem {
|
||||
base: base.clone(),
|
||||
blur_radius: shadow.blur,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue