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

Unified Diff: Source/platform/geometry/IntSize.h

Issue 226523005: Remove IntSize::area, and rename IntSize::area_safe() to IntSize::area() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 | « Source/core/rendering/compositing/RenderLayerCompositor.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/geometry/IntSize.h
diff --git a/Source/platform/geometry/IntSize.h b/Source/platform/geometry/IntSize.h
index daf51852af23308ac024130a3ff321f323124833..f7caf294a173cd3d81ac813bec6f3095c3ab0c5b 100644
--- a/Source/platform/geometry/IntSize.h
+++ b/Source/platform/geometry/IntSize.h
@@ -98,13 +98,8 @@ public:
m_height = minimumSize.height();
}
- int area() const
- {
- return m_width * m_height;
- }
-
// Return area in a uint64_t to avoid overflow.
- uint64_t area_safe() const
+ uint64_t area() const
{
return static_cast<uint64_t>(width()) * height();
}
« no previous file with comments | « Source/core/rendering/compositing/RenderLayerCompositor.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698