WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
66281
Support cast from CSSPrimitiveValue to unsigned, and use in appropriate places in CSSStyleSelector::applyProperty
https://bugs.webkit.org/show_bug.cgi?id=66281
Summary
Support cast from CSSPrimitiveValue to unsigned, and use in appropriate place...
Luke Macpherson
Reported
2011-08-15 22:44:24 PDT
Support cast from CSSPrimitiveValue to unsigned, and use in appropriate places in CSSStyleSelector::applyProperty
Attachments
Patch
(3.70 KB, patch)
2011-08-15 22:49 PDT
,
Luke Macpherson
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Luke Macpherson
Comment 1
2011-08-15 22:49:09 PDT
Created
attachment 104008
[details]
Patch
Eric Seidel (no email)
Comment 2
2011-08-17 11:26:35 PDT
Comment on
attachment 104008
[details]
Patch Seems previously it would ignore bad values, and now this will ASSERT on bad values, is that a correct reading? Could you end up getting the grammar to hand the style-selector a non-number here?
Luke Macpherson
Comment 3
2011-08-17 16:26:32 PDT
That is correct, and it should be an assert because anything other than a number would indicate a bug in CSSParser.cpp:1524 - 1528 case CSSPropertyWebkitBoxFlex: validPrimitive = validUnit(value, FNumber, m_strict); break; case CSSPropertyWebkitBoxFlexGroup: case CSSPropertyWebkitBoxOrdinalGroup: validPrimitive = validUnit(value, FInteger | FNonNeg, true); As you can see only the appropriate types are considered valid.
WebKit Review Bot
Comment 4
2011-08-17 17:07:12 PDT
Comment on
attachment 104008
[details]
Patch Clearing flags on attachment: 104008 Committed
r93263
: <
http://trac.webkit.org/changeset/93263
>
WebKit Review Bot
Comment 5
2011-08-17 17:07:16 PDT
All reviewed patches have been landed. Closing bug.
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