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

Issue 1438043012: Avoid int coercion of box-shadow args (Closed)

Created:
5 years, 1 month ago by f(malita)
Modified:
5 years, 1 month ago
CC:
blink-reviews, blink-reviews-paint_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney, slimming-paint-reviews_chromium.org, vmpstr+blinkwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid int coercion of box-shadow args Most of the pipeline is already operating with float values, so there's no need to pass int args for shadow-related GraphicsContext methods. This addresses non-int shadow TODOs, and fixes asserts triggered by int overflows. TEST=fast/box-shadow/degenerate-radius-crash.html BUG=424119, 334828 R=reed@google.com,cbiesinger@chromium.org,junov@chromium.org Committed: https://crrev.com/d6fc1b14536d95e13ca06bbdfe427bfd693b5c79 Cr-Commit-Position: refs/heads/master@{#360113}

Patch Set 1 #

Total comments: 5

Patch Set 2 : mac theme update, subpixel test #

Messages

Total messages: 11 (2 generated)
f(malita)
5 years, 1 month ago (2015-11-14 18:14:11 UTC) #1
chrishtr
https://codereview.chromium.org/1438043012/diff/1/third_party/WebKit/Source/core/paint/BoxPainter.cpp File third_party/WebKit/Source/core/paint/BoxPainter.cpp (left): https://codereview.chromium.org/1438043012/diff/1/third_party/WebKit/Source/core/paint/BoxPainter.cpp#oldcode705 third_party/WebKit/Source/core/paint/BoxPainter.cpp:705: context->drawInnerShadow(border, shadowColor, flooredIntSize(shadowOffset), shadowBlur, shadowSpread, clippedEdges); Please also update ...
5 years, 1 month ago (2015-11-16 17:12:44 UTC) #3
Justin Novosad
https://codereview.chromium.org/1438043012/diff/1/third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.cpp File third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.cpp (right): https://codereview.chromium.org/1438043012/diff/1/third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.cpp#newcode70 third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.cpp:70: ASSERT(blur >= 0); Did a bit of digging... I ...
5 years, 1 month ago (2015-11-16 23:07:19 UTC) #4
f(malita)
https://codereview.chromium.org/1438043012/diff/1/third_party/WebKit/Source/core/paint/BoxPainter.cpp File third_party/WebKit/Source/core/paint/BoxPainter.cpp (left): https://codereview.chromium.org/1438043012/diff/1/third_party/WebKit/Source/core/paint/BoxPainter.cpp#oldcode705 third_party/WebKit/Source/core/paint/BoxPainter.cpp:705: context->drawInnerShadow(border, shadowColor, flooredIntSize(shadowOffset), shadowBlur, shadowSpread, clippedEdges); On 2015/11/16 17:12:44, ...
5 years, 1 month ago (2015-11-17 13:55:24 UTC) #5
Justin Novosad
lgtm https://codereview.chromium.org/1438043012/diff/1/third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.cpp File third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.cpp (right): https://codereview.chromium.org/1438043012/diff/1/third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.cpp#newcode70 third_party/WebKit/Source/platform/graphics/DrawLooperBuilder.cpp:70: ASSERT(blur >= 0); On 2015/11/17 13:55:23, f(malita) wrote: ...
5 years, 1 month ago (2015-11-17 14:19:03 UTC) #6
chrishtr
lgtm
5 years, 1 month ago (2015-11-17 18:01:17 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1438043012/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1438043012/20001
5 years, 1 month ago (2015-11-17 18:03:35 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 1 month ago (2015-11-17 18:11:27 UTC) #10
commit-bot: I haz the power
5 years, 1 month ago (2015-11-17 18:12:48 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d6fc1b14536d95e13ca06bbdfe427bfd693b5c79
Cr-Commit-Position: refs/heads/master@{#360113}

Powered by Google App Engine
This is Rietveld 408576698