WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
219829
REGRESSION (
r259137
): Clip-path rendering regression when element contains transformed child
https://bugs.webkit.org/show_bug.cgi?id=219829
Summary
REGRESSION (r259137): Clip-path rendering regression when element contains tr...
Simon Fraser (smfr)
Reported
2020-12-12 13:43:56 PST
Created
attachment 416107
[details]
Testcase
r259137
broke clip-path rendering in some cases.
Attachments
Testcase
(1.78 KB, text/html)
2020-12-12 13:43 PST
,
Simon Fraser (smfr)
no flags
Details
Patch
(8.08 KB, patch)
2020-12-12 14:43 PST
,
Simon Fraser (smfr)
sabouhallawa
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Simon Fraser (smfr)
Comment 1
2020-12-12 13:44:13 PST
<
rdar://problem/66308088
>
Simon Fraser (smfr)
Comment 2
2020-12-12 14:43:59 PST
Created
attachment 416110
[details]
Patch
Alexey Proskuryakov
Comment 3
2020-12-12 17:00:31 PST
How is this different from
bug 215458
?
Simon Fraser (smfr)
Comment 4
2020-12-12 17:53:41 PST
***
Bug 215458
has been marked as a duplicate of this bug. ***
Said Abou-Hallawa
Comment 5
2020-12-14 12:03:48 PST
Comment on
attachment 416110
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=416110&action=review
> Source/WebCore/rendering/RenderLayer.cpp:-4514 > - if (!rootRelativeBounds) > - rootRelativeBounds = calculateLayerBounds(paintingInfo.rootLayer, offsetFromRoot, { }); > -
RenderLayer::setupFilters() has similar calculations. And it looks we used to call calculateLayerBounds() only once if both clip-path and filter are applied. Now we are going to call calculateLayerBounds() twice but with different arguments. Do we need to do the same changes in RenderLayer::setupFilters()? Do we need to remove the variable "Optional<LayoutRect> rootRelativeBounds;" from RenderLayer::paintLayerContents() since it won't be shared anymore between the clip-path and the filter.
> LayoutTests/css3/masking/clip-path-overflow-hidden-bounds-expected.html:22 > + <path d="M0,0 L100,0 L100,100 L0,100 L0,0 z"/>
Weird indentation.
> LayoutTests/css3/masking/clip-path-overflow-hidden-bounds.html:29 > + <path d="M0,0 L100,0 L100,100 L0,100 L0,0 z"/>
Ditto.
Simon Fraser (smfr)
Comment 6
2020-12-15 10:17:16 PST
https://trac.webkit.org/changeset/270850/webkit
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug