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

Issue 288013005: Handle transformed descendants when drawing focus rings (Closed)

Created:
6 years, 7 months ago by Xianzhu
Modified:
6 years, 6 months ago
CC:
blink-reviews, blink-reviews-rendering, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, rune+blink
Visibility:
Public.

Description

Handle transformed descendants when drawing focus rings Previously we use localToContainerPoint((0,0)) to calculate the offset of a child when drawing focus rings. If the child is rotated, (0, 0) won't be its top-left corner in container‘s coordinations. Now use localToContainerQuad(childLocalFocusRingRect).enclosingBoundingBox(). Also updated RenderObject::absoluteFocusRingQuads() to be transform-aware. BUG=374168 TEST=transforms/transform-focus-ring.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175183

Patch Set 1 #

Patch Set 2 : Fix inline-block under inline #

Total comments: 6

Patch Set 3 : Naming, update absoluteFocusRingQuads etc. #

Patch Set 4 : Fix test failures (about rounding, etc.) #

Patch Set 5 : Exclude the new flaky test. The other new test covers the change. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -34 lines) Patch
A LayoutTests/transforms/transform-focus-ring.html View 1 chunk +6 lines, -0 lines 0 comments Download
A LayoutTests/transforms/transform-focus-ring-expected.html View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderBlock.cpp View 1 2 3 4 1 chunk +1 line, -12 lines 0 comments Download
M Source/core/rendering/RenderInline.cpp View 1 2 3 4 1 chunk +1 line, -11 lines 0 comments Download
M Source/core/rendering/RenderObject.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 2 3 4 2 chunks +30 lines, -11 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Xianzhu
6 years, 7 months ago (2014-05-19 17:45:43 UTC) #1
Xianzhu
6 years, 7 months ago (2014-05-23 00:03:29 UTC) #2
Xianzhu
ping...
6 years, 7 months ago (2014-05-27 16:18:40 UTC) #3
Xianzhu
On 2014/05/27 16:18:40, Xianzhu wrote: > ping... ping...
6 years, 6 months ago (2014-05-29 16:34:32 UTC) #4
pdr.
I'm not very familiar with this code (nor are the other reviewers it seems). This ...
6 years, 6 months ago (2014-05-29 21:22:44 UTC) #5
esprehn
This seems alright, but I suspect that Julien is your best reviewer. https://codereview.chromium.org/288013005/diff/20001/Source/core/rendering/RenderObject.cpp File Source/core/rendering/RenderObject.cpp ...
6 years, 6 months ago (2014-05-29 21:37:06 UTC) #6
Xianzhu
https://codereview.chromium.org/288013005/diff/20001/Source/core/rendering/RenderObject.cpp File Source/core/rendering/RenderObject.cpp (right): https://codereview.chromium.org/288013005/diff/20001/Source/core/rendering/RenderObject.cpp#newcode1254 Source/core/rendering/RenderObject.cpp:1254: for (RenderObject* curr = slowFirstChild(); curr; curr = curr->nextSibling()) ...
6 years, 6 months ago (2014-05-29 22:12:31 UTC) #7
pdr.
On 2014/05/29 22:12:31, Xianzhu wrote: > https://codereview.chromium.org/288013005/diff/20001/Source/core/rendering/RenderObject.cpp > File Source/core/rendering/RenderObject.cpp (right): > > https://codereview.chromium.org/288013005/diff/20001/Source/core/rendering/RenderObject.cpp#newcode1254 > ...
6 years, 6 months ago (2014-05-29 22:14:01 UTC) #8
pdr.
The CQ bit was checked by pdr@chromium.org
6 years, 6 months ago (2014-05-29 22:14:06 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/288013005/60001
6 years, 6 months ago (2014-05-29 22:15:03 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 6 months ago (2014-05-29 23:57:36 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-30 14:40:32 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/10118)
6 years, 6 months ago (2014-05-30 14:40:32 UTC) #13
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 6 months ago (2014-05-30 17:14:25 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/288013005/80001
6 years, 6 months ago (2014-05-30 17:15:57 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 6 months ago (2014-05-30 18:31:22 UTC) #16
Xianzhu
The CQ bit was unchecked by wangxianzhu@chromium.org
6 years, 6 months ago (2014-05-30 18:35:38 UTC) #17
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 6 months ago (2014-05-30 19:18:04 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/288013005/100001
6 years, 6 months ago (2014-05-30 19:18:39 UTC) #19
Xianzhu
The CQ bit was unchecked by wangxianzhu@chromium.org
6 years, 6 months ago (2014-05-30 21:00:42 UTC) #20
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 6 months ago (2014-05-30 21:21:33 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/288013005/120001
6 years, 6 months ago (2014-05-30 21:24:49 UTC) #22
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 6 months ago (2014-05-30 23:36:25 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/288013005/140001
6 years, 6 months ago (2014-05-30 23:37:47 UTC) #24
commit-bot: I haz the power
6 years, 6 months ago (2014-05-31 01:16:04 UTC) #25
Message was sent while issue was closed.
Change committed as 175183

Powered by Google App Engine
This is Rietveld 408576698