diff options
Diffstat (limited to 'ui/gfx/size_base_impl.h')
-rw-r--r-- | ui/gfx/size_base_impl.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/ui/gfx/size_base_impl.h b/ui/gfx/size_base_impl.h index 99b1145..9e87468 100644 --- a/ui/gfx/size_base_impl.h +++ b/ui/gfx/size_base_impl.h @@ -16,18 +16,13 @@ namespace gfx { template<typename Class, typename Type> void SizeBase<Class, Type>::set_width(Type width) { -#if !defined(OS_ANDROID) - // TODO(aelias): Remove these ifdefs for Android. See http://crbug.com/168927 DCHECK(!(width < 0)); -#endif width_ = width < 0 ? 0 : width; } template<typename Class, typename Type> void SizeBase<Class, Type>::set_height(Type height) { -#if !defined(OS_ANDROID) DCHECK(!(height < 0)); -#endif height_ = height < 0 ? 0 : height; } @@ -35,10 +30,8 @@ template<typename Class, typename Type> SizeBase<Class, Type>::SizeBase(Type width, Type height) : width_(width < 0 ? 0 : width), height_(height < 0 ? 0 : height) { -#if !defined(OS_ANDROID) DCHECK(!(width < 0)); DCHECK(!(height < 0)); -#endif } } // namespace gfx |