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:
Glenn Watson 2017-07-17 11:32:40 +10:00 committed by Martin Robinson
parent 2aa34f9dc2
commit 1b354994f6
2 changed files with 28 additions and 29 deletions

View file

@ -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,