summaryrefslogtreecommitdiffstats
path: root/cc/layers/nine_patch_layer_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/layers/nine_patch_layer_impl.cc')
-rw-r--r--cc/layers/nine_patch_layer_impl.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/cc/layers/nine_patch_layer_impl.cc b/cc/layers/nine_patch_layer_impl.cc
index f41b550..d3c70f7 100644
--- a/cc/layers/nine_patch_layer_impl.cc
+++ b/cc/layers/nine_patch_layer_impl.cc
@@ -110,7 +110,10 @@ void NinePatchLayerImpl::AppendQuads(QuadSink* quad_sink,
top_right.x(), bottom_left.y(), right_width, bottom_height);
gfx::Rect top(top_left.right(), 0, middle_width, top_height);
gfx::Rect left(0, top_left.bottom(), left_width, middle_height);
- gfx::Rect right(top_right.x(), top_right.bottom(), right_width, left.height());
+ gfx::Rect right(top_right.x(),
+ top_right.bottom(),
+ right_width,
+ left.height());
gfx::Rect bottom(top.x(), bottom_left.y(), top.width(), bottom_height);
float img_width = image_bounds_.width();