Chromium Code Reviews
DescriptionInclude clip-path and border radius when hit testing boxes
This patch fixes a bug where clip-path and border radius were ignored
on boxes such as images. This code was present in LayoutBlock but
needed to be moved up to LayoutBox.
The patch itself primarily extracts the clip-path and border radius
code into functions called by both LayoutBlock and LayoutBox. The clip
path code has been cleaned up a little not use a switch. A TODO has
been added for sharing even more code between the block and box hit
testing code. Another TODO has been added for compositor support for
hit test clipping.
BUG=468613
Committed: https://crrev.com/ba4a97410b76057c11d300c4bd61402863f50d45
Cr-Commit-Position: refs/heads/master@{#365050}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Also fix border radius on boxes, add todos for discoveries learned about this area #Patch Set 3 : Cleanup tests to use js-test.js #
Total comments: 2
Patch Set 4 : Add test for clip-path shapes #Patch Set 5 : Hit test in PaintLayer, add transformed clip path tests #Messages
Total messages: 44 (18 generated)
|