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

Unified Diff: cc/output/filter_operation.cc

Issue 2231243002: Use CheckedNumeric when converting SkIRect to gfx::Rect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format Created 4 years, 4 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 | cc/output/filter_operations_unittest.cc » ('j') | ui/gfx/skia_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/filter_operation.cc
diff --git a/cc/output/filter_operation.cc b/cc/output/filter_operation.cc
index 198057a265d9643d150ed8d66123192452813e59..257beda888d610f2bfcc194d564db71c2b526a4c 100644
--- a/cc/output/filter_operation.cc
+++ b/cc/output/filter_operation.cc
@@ -361,8 +361,8 @@ gfx::Rect MapRectInternal(const FilterOperation& op,
case FilterOperation::REFERENCE: {
if (!op.image_filter())
return rect;
- return gfx::SkIRectToRect(op.image_filter()->filterBounds(
- gfx::RectToSkIRect(rect), matrix, direction));
+ return gfx::SkIRectToRectChecked(op.image_filter()->filterBounds(
+ gfx::RectToSkIRectChecked(rect), matrix, direction));
}
default:
return rect;
« no previous file with comments | « no previous file | cc/output/filter_operations_unittest.cc » ('j') | ui/gfx/skia_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698