Index: ui/views/shadow_border.cc |
=================================================================== |
--- ui/views/shadow_border.cc (revision 236640) |
+++ ui/views/shadow_border.cc (working copy) |
@@ -34,6 +34,7 @@ |
paint.setColor(SK_ColorTRANSPARENT); |
paint.setStrokeJoin(SkPaint::kRound_Join); |
gfx::Rect bounds(view.size()); |
+ // This isn't really right if one of the offsets is larger than (blur_ / 2)... |
msw
2013/11/22 18:00:25
nit: fix it, file an issue, or make this a TODO.
Peter Kasting
2013/11/22 22:07:55
Done.
|
bounds.Inset(gfx::Insets(blur_ / 2, blur_ / 2, blur_ / 2, blur_ / 2)); |
canvas->DrawRect(bounds, paint); |
} |
@@ -45,4 +46,8 @@ |
blur_ / 2 + horizontal_offset_); |
} |
+gfx::Size ShadowBorder::GetMinimumSize() const { |
+ return gfx::Size(blur_, blur_); |
+} |
+ |
} // namespace views |