WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
219863
Simplify transform blending for simple cases
https://bugs.webkit.org/show_bug.cgi?id=219863
Summary
Simplify transform blending for simple cases
Antoine Quint
Reported
2020-12-14 11:11:23 PST
Simplify transform blending for simple cases
Attachments
Patch
(27.32 KB, patch)
2020-12-14 11:16 PST
,
Antoine Quint
simon.fraser
: review+
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Antoine Quint
Comment 1
2020-12-14 11:16:01 PST
Created
attachment 416176
[details]
Patch
Simon Fraser (smfr)
Comment 2
2020-12-14 11:20:40 PST
Comment on
attachment 416176
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=416176&action=review
> Source/WebCore/platform/graphics/transforms/TransformationMatrix.cpp:952 > + if (!fmod(angle, 360))
std::fmod or std::fmod<double>
> Source/WebCore/platform/graphics/transforms/TransformationMatrix.cpp:1675 > + for (size_t x = 0; x < 4; ++x) { > + for (size_t y = 0; y < 4; ++y) > + m_matrix[x][y] = from.m_matrix[x][y]; > + }
You can just do *this = from here.
Antoine Quint
Comment 3
2020-12-14 11:25:29 PST
(In reply to Simon Fraser (smfr) from
comment #2
)
> Comment on
attachment 416176
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=416176&action=review
> > > Source/WebCore/platform/graphics/transforms/TransformationMatrix.cpp:952 > > + if (!fmod(angle, 360)) > > std::fmod or std::fmod<double>
Will fix in commit.
> > Source/WebCore/platform/graphics/transforms/TransformationMatrix.cpp:1675 > > + for (size_t x = 0; x < 4; ++x) { > > + for (size_t y = 0; y < 4; ++y) > > + m_matrix[x][y] = from.m_matrix[x][y]; > > + } > > You can just do *this = from here.
That's excellent, I was hoping there was a better way!
Antoine Quint
Comment 4
2020-12-14 12:56:06 PST
Committed
r270801
: <
https://trac.webkit.org/changeset/270801
>
Radar WebKit Bug Importer
Comment 5
2020-12-14 12:57:16 PST
<
rdar://problem/72310251
>
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