aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorAdenilson Cavalcanti <cavalcantii@gmail.com>2014-12-16 12:01:00 -0800
committerAdenilson Cavalcanti <a.cavalcanti@samsung.com>2014-12-16 12:01:43 -0800
commit0e24194d81820664be0e521fa9d22df6494e197d (patch)
treede3e96033a82c63f77806fff6010ad36dd77d223 /components
parent905c30d69739fcacfe67cb2605eb9f669ae9a82f (diff)
downloadservo-0e24194d81820664be0e521fa9d22df6494e197d.tar.gz
servo-0e24194d81820664be0e521fa9d22df6494e197d.zip
Inset and outset border coloring is incorrect on left side border.
This patch will fix this issue.
Diffstat (limited to 'components')
-rw-r--r--components/gfx/paint_context.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/gfx/paint_context.rs b/components/gfx/paint_context.rs
index 0748b3db928..f34b62559f8 100644
--- a/components/gfx/paint_context.rs
+++ b/components/gfx/paint_context.rs
@@ -642,8 +642,7 @@ impl<'a> PaintContext<'a> {
let original_bounds = self.get_scaled_bounds(bounds, border, 0.0);
// select and scale the color appropriately.
let scaled_color = match direction {
- Top => self.scale_color(color, if is_inset { 2.0/3.0 } else { 1.0 }),
- Left => self.scale_color(color, if is_inset { 1.0/6.0 } else { 0.5 }),
+ Top | Left => self.scale_color(color, if is_inset { 2.0/3.0 } else { 1.0 }),
Right | Bottom => self.scale_color(color, if is_inset { 1.0 } else { 2.0/3.0 })
};
self.draw_border_path(&original_bounds, direction, border, radius, scaled_color);