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

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

Issue 1447273003: Make the FloatSize constructor from an IntSize explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
Index: third_party/WebKit/Source/platform/graphics/filters/FEConvolveMatrix.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FEConvolveMatrix.cpp b/third_party/WebKit/Source/platform/graphics/filters/FEConvolveMatrix.cpp
index 248f4d55595a39277c05b4c8368eae7ad6cb6a97..b96fad7b4418579a08c6eb3051971f445407037d 100644
--- a/third_party/WebKit/Source/platform/graphics/filters/FEConvolveMatrix.cpp
+++ b/third_party/WebKit/Source/platform/graphics/filters/FEConvolveMatrix.cpp
@@ -59,7 +59,7 @@ FloatRect FEConvolveMatrix::mapPaintRect(const FloatRect& rect, bool forward)
FloatRect result = rect;
if (parametersValid()) {
result.moveBy(forward ? -m_targetOffset : m_targetOffset - m_kernelSize);
- result.expand(m_kernelSize);
+ result.expand(FloatSize(m_kernelSize));
}
return result;
}
@@ -181,7 +181,7 @@ TextStream& FEConvolveMatrix::externalRepresentation(TextStream& ts, int indent)
writeIndent(ts, indent);
ts << "[feConvolveMatrix";
FilterEffect::externalRepresentation(ts);
- ts << " order=\"" << m_kernelSize << "\" "
+ ts << " order=\"" << FloatSize(m_kernelSize) << "\" "
<< "kernelMatrix=\"" << m_kernelMatrix << "\" "
<< "divisor=\"" << m_divisor << "\" "
<< "bias=\"" << m_bias << "\" "

Powered by Google App Engine
This is Rietveld 408576698