Skip to content

Commit

Permalink
Update WR (text-shadow improvements, iframe + image clips, depth buff…
Browse files Browse the repository at this point in the history
…er sharing).

Push multiple text shadows in the order WR expects them.
  • Loading branch information
gw3583 authored and mrobinson committed Jul 18, 2017
1 parent 2aa34f9 commit 1b35499
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 29 deletions.
54 changes: 27 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions components/layout/display_list_builder.rs
Expand Up @@ -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.

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 1b35499

Please sign in to comment.