Commit 70b78f3a authored by Reza.Zakerinasab's avatar Reza.Zakerinasab Committed by Commit Bot

Fix float cast overflow in BaseRenderingContext2D::InflateStrokeRect

Bug: 837963
TBR: junov@chromium.org
Change-Id: Ifa500e548d67c87034829b51b230b2d5152c4c1f
Reviewed-on: https://chromium-review.googlesource.com/1034463Reviewed-by: default avatarMohammad Reza Zakerinasab <zakerinasab@chromium.org>
Commit-Queue: Mohammad Reza Zakerinasab <zakerinasab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#554744}
parent 11175107
......@@ -1889,7 +1889,7 @@ void BaseRenderingContext2D::InflateStrokeRect(FloatRect& rect) const {
else if (GetState().GetLineCap() == kSquareCap)
delta *= kRoot2;
rect.Inflate(delta);
rect.Inflate(clampTo<float>(delta));
}
bool BaseRenderingContext2D::imageSmoothingEnabled() const {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment