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

Unified Diff: Source/core/rendering/compositing/RenderLayerCompositor.cpp

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 | « no previous file | Source/platform/geometry/IntSize.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/compositing/RenderLayerCompositor.cpp
diff --git a/Source/core/rendering/compositing/RenderLayerCompositor.cpp b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
index c61637c5a08d69bf4b14cd96ad7133fa64290d35..08635be22ba9dff98defd8d988f74abb1d4a637c 100644
--- a/Source/core/rendering/compositing/RenderLayerCompositor.cpp
+++ b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
@@ -658,8 +658,8 @@ bool RenderLayerCompositor::squashingWouldExceedSparsityTolerance(const RenderLa
IntRect bounds = candidate->ancestorDependentProperties().clippedAbsoluteBoundingBox;
IntRect newBoundingRect = squashingState.boundingRect;
newBoundingRect.unite(bounds);
- const uint64_t newBoundingRectArea = newBoundingRect.size().area_safe();
- const uint64_t newSquashedArea = squashingState.totalAreaOfSquashedRects + bounds.size().area_safe();
+ const uint64_t newBoundingRectArea = newBoundingRect.size().area();
+ const uint64_t newSquashedArea = squashingState.totalAreaOfSquashedRects + bounds.size().area();
return newBoundingRectArea > gSquashingSparsityTolerance * newSquashedArea;
}
« no previous file with comments | « no previous file | Source/platform/geometry/IntSize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698