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

Unified Diff: third_party/WebKit/Source/platform/graphics/filters/FilterOperation.cpp

Issue 2313883003: Fix integer overflow in FEGaussianBlur::mapRect. (Closed)
Patch Set: .0f in two more places Created 4 years, 3 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 | « third_party/WebKit/Source/platform/graphics/filters/FEGaussianBlur.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/filters/FilterOperation.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FilterOperation.cpp b/third_party/WebKit/Source/platform/graphics/filters/FilterOperation.cpp
index 46165337c1ebea32cb942e1670411609335afc57..b7c9ec929c1d4f4e362ab4a7846d2679e60ad7f3 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FilterOperation.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/FilterOperation.cpp
@@ -38,8 +38,8 @@ static inline FloatSize outsetSizeForBlur(float stdDeviation)
IntSize kernelSize = FEGaussianBlur::calculateUnscaledKernelSize(FloatPoint(stdDeviation, stdDeviation));
FloatSize outset;
// We take the half kernel size and multiply it with three, because we run box blur three times.
- outset.setWidth(3 * kernelSize.width() * 0.5f);
- outset.setHeight(3 * kernelSize.height() * 0.5f);
+ outset.setWidth(3.0f * kernelSize.width() * 0.5f);
+ outset.setHeight(3.0f * kernelSize.height() * 0.5f);
return outset;
}
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/filters/FEGaussianBlur.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698