Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(349)

Unified Diff: ui/gfx/size.cc

Issue 11410024: ui: Remove gfx::Size::ClampToNonNegative, prevent negative sizes always. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: negative-width Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/rect_unittest.cc ('k') | ui/gfx/size_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/size.cc
diff --git a/ui/gfx/size.cc b/ui/gfx/size.cc
index a9a0bddba882669be74a5be856ef6352c312f396..4f9ff644491c3790f8f585c5c222f49b21a321b2 100644
--- a/ui/gfx/size.cc
+++ b/ui/gfx/size.cc
@@ -8,18 +8,16 @@
#include <windows.h>
#endif
-#include "base/logging.h"
#include "base/stringprintf.h"
-#include "ui/gfx/size_base.h"
+#include "ui/gfx/size_base_impl.h"
namespace gfx {
template class SizeBase<Size, int>;
#if defined(OS_MACOSX)
-Size::Size(const CGSize& s) : SizeBase<Size, int>(0, 0) {
- set_width(s.width);
- set_height(s.height);
+Size::Size(const CGSize& s)
+ : SizeBase<Size, int>(s.width, s.height) {
}
Size& Size::operator=(const CGSize& s) {
« no previous file with comments | « ui/gfx/rect_unittest.cc ('k') | ui/gfx/size_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698