WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
226613
[Cairo] Fix Path::boundingRectSlowCase when the path is a single MoveTo
https://bugs.webkit.org/show_bug.cgi?id=226613
Summary
[Cairo] Fix Path::boundingRectSlowCase when the path is a single MoveTo
Arcady Goldmints-Orlov
Reported
2021-06-03 17:45:36 PDT
[Cairo] Fix Path::boundingRectSlowCase when the path is a single MoveTo
Attachments
Patch
(1.48 KB, patch)
2021-06-03 17:46 PDT
,
Arcady Goldmints-Orlov
no flags
Details
Formatted Diff
Diff
Patch
(1.75 KB, patch)
2021-06-09 11:16 PDT
,
Arcady Goldmints-Orlov
no flags
Details
Formatted Diff
Diff
Patch
(1.75 KB, patch)
2021-06-09 13:08 PDT
,
Arcady Goldmints-Orlov
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Arcady Goldmints-Orlov
Comment 1
2021-06-03 17:46:20 PDT
Created
attachment 430520
[details]
Patch
Fujii Hironori
Comment 2
2021-06-03 18:09:38 PDT
I have questions. Which benchmark are you using? How does it improve? Why is it using the single move paths? Why is cairo_path_extents slower for the case?
Fujii Hironori
Comment 3
2021-06-03 18:35:18 PDT
Oops. I misread and misunderstood. This is not a speed-up, but a bug fix. Do you have a test case?
Carlos Garcia Campos
Comment 4
2021-06-04 00:43:14 PDT
Comment on
attachment 430520
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=430520&action=review
> Source/WebCore/ChangeLog:7 > +
Could you explain here what's wrong exactly. Are we rendering anything incorrectly? does this fix any test? or can we add a new one?
> Source/WebCore/platform/graphics/cairo/PathCairo.cpp:414 > + if (m_elements && m_elements.value().size() == 1 > + && m_elements.value()[0].type == PathElement::Type::MoveToPoint) {
This could be a single line.
Fujii Hironori
Comment 5
2021-06-06 18:55:00 PDT
Comment on
attachment 430520
[details]
Patch r- for
comment#4
.
Arcady Goldmints-Orlov
Comment 6
2021-06-07 08:21:32 PDT
Sorry, I should have been clearer. This fixes the new fast/svg/bounding-rect-for-path-with-only-move-command.html test which was added recently, I will add that to the changelog, and fix the formatting issue. Thanks for taking a look.
Arcady Goldmints-Orlov
Comment 7
2021-06-09 11:16:18 PDT
Created
attachment 430981
[details]
Patch
Arcady Goldmints-Orlov
Comment 8
2021-06-09 13:08:10 PDT
Created
attachment 431000
[details]
Patch
EWS
Comment 9
2021-06-10 13:57:04 PDT
Committed
r278730
(
238693@main
): <
https://commits.webkit.org/238693@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 431000
[details]
.
Radar WebKit Bug Importer
Comment 10
2021-06-10 13:58:17 PDT
<
rdar://problem/79158727
>
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