WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 20086
Assertion about creating Length with percentage value when blending transforms
https://bugs.webkit.org/show_bug.cgi?id=20086
Summary
Assertion about creating Length with percentage value when blending transforms
Simon Fraser (smfr)
Reported
2008-07-17 14:31:16 PDT
In the attached testcase, hover over the blue box. It asserts here: Length(int v, LengthType t, bool q = false) : m_value((v * 16) | (q << 3) | t) // FIXME: Doesn't work if the passed-in value is very large! { ASSERT(t != Percent); }
Attachments
Testcase; asserts in debug build on hover.
(801 bytes, text/html)
2008-07-17 14:33 PDT
,
Simon Fraser (smfr)
no flags
Details
Patch, changelog
(1.66 KB, patch)
2008-07-17 14:40 PDT
,
Simon Fraser (smfr)
hyatt
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Simon Fraser (smfr)
Comment 1
2008-07-17 14:33:26 PDT
Created
attachment 22351
[details]
Testcase; asserts in debug build on hover.
Simon Fraser (smfr)
Comment 2
2008-07-17 14:37:03 PDT
The issue is that Length(0, m_x.type()).blend(m_x, progress) creates a Length() using a value of 0 and the type from m_x, which can be percentage. This asserts in the Length ctor. Instead, we use Length(m_x.type()).blend(m_x, progress) which just constructs a Length with the right type, and blends that.
Simon Fraser (smfr)
Comment 3
2008-07-17 14:40:32 PDT
Created
attachment 22352
[details]
Patch, changelog
Dave Hyatt
Comment 4
2008-07-18 12:17:50 PDT
Comment on
attachment 22352
[details]
Patch, changelog r=me
Simon Fraser (smfr)
Comment 5
2008-07-18 14:49:02 PDT
Fixed in
r35238
.
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