WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
227015
GraphicsContext::apply{Fill,Stroke}Pattern needs to do nothing if there is no fill/stroke pattern set
https://bugs.webkit.org/show_bug.cgi?id=227015
Summary
GraphicsContext::apply{Fill,Stroke}Pattern needs to do nothing if there is no...
Myles C. Maxfield
Reported
2021-06-14 23:01:26 PDT
GraphicsContext::apply{Fill,Stroke}Pattern needs to do nothing if there is no fill/stroke pattern set
Attachments
Patch
(3.14 KB, patch)
2021-06-14 23:02 PDT
,
Myles C. Maxfield
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Myles C. Maxfield
Comment 1
2021-06-14 23:02:59 PDT
Created
attachment 431406
[details]
Patch
EWS
Comment 2
2021-06-15 11:19:04 PDT
Committed
r278885
(
238827@main
): <
https://commits.webkit.org/238827@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 431406
[details]
.
Radar WebKit Bug Importer
Comment 3
2021-06-15 11:20:21 PDT
<
rdar://problem/79352245
>
Said Abou-Hallawa
Comment 4
2021-07-08 15:09:19 PDT
Comment on
attachment 431406
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=431406&action=review
> Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp:547 > + if (!m_state.strokePattern) > + return;
This check is not needed for GraphicsContextCG because all the callers check if (m_state.strokePattern) before calling this function. But it is needed for DisplayList::Recorder and RenderSVGResourcePattern::applyResource() because the callers do not check if (m_state.strokePattern) before calling this function. So I think we should either 1. Remove the check if (m_state.strokePattern) form GraphicsContextCG functions. 2. Remove this check and make DisplayList::Recorder and RenderSVGResourcePattern::applyResource() check if (m_state.strokePattern) before calling this function.
> Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp:566 > + if (!m_state.fillPattern) > + return;
Ditto.
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