WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
104009
Add an helper function in CSSParser to check for '/' character.
https://bugs.webkit.org/show_bug.cgi?id=104009
Summary
Add an helper function in CSSParser to check for '/' character.
Alexis Menard (darktears)
Reported
2012-12-04 09:37:06 PST
Add an helper function in CSSParser to check for '/' character.
Attachments
Patch
(3.36 KB, patch)
2012-12-04 09:39 PST
,
Alexis Menard (darktears)
no flags
Details
Formatted Diff
Diff
Patch
(3.45 KB, patch)
2012-12-04 10:13 PST
,
Alexis Menard (darktears)
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Alexis Menard (darktears)
Comment 1
2012-12-04 09:39:34 PST
Created
attachment 177500
[details]
Patch
Ryosuke Niwa
Comment 2
2012-12-04 10:10:18 PST
Comment on
attachment 177500
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=177500&action=review
> Source/WebCore/css/CSSParser.cpp:1655 > +static inline bool isSlash(CSSParserValue* value)
We might want to call this isOperatorSlash or some other CSS-spec terminology.
Alexis Menard (darktears)
Comment 3
2012-12-04 10:13:57 PST
Created
attachment 177505
[details]
Patch
Daniel Bates
Comment 4
2012-12-04 10:23:48 PST
We should look to rename BorderImageParseContext::{allow, commit}Slash to be consistent with the naming of "isForwardSlashOperator". For completeness, the paragraph under Example 22 in <
http://www.w3.org/TR/css3-background/
> (24 July 2012) references the forward slash character as "slash" with respect to the shorthand border-radius property.
Alexis Menard (darktears)
Comment 5
2012-12-04 10:26:42 PST
Committed
r136525
: <
http://trac.webkit.org/changeset/136525
>
Darin Adler
Comment 6
2012-12-04 10:35:10 PST
Comment on
attachment 177505
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=177505&action=review
> Source/WebCore/css/CSSParser.cpp:1657 > + return value && value->unit == CSSParserValue::Operator && value->iValue == '/';
This adds an extra null check. Seems like an unwanted change. Maybe make this take a CSSParserValue& and put * characters at the call sites? Or just leave out the null check? Or replace it with an assertion?
Alexis Menard (darktears)
Comment 7
2012-12-04 10:47:59 PST
Comment on
attachment 177505
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=177505&action=review
>> Source/WebCore/css/CSSParser.cpp:1657 >> + return value && value->unit == CSSParserValue::Operator && value->iValue == '/'; > > This adds an extra null check. Seems like an unwanted change. Maybe make this take a CSSParserValue& and put * characters at the call sites? Or just leave out the null check? Or replace it with an assertion?
I can just remove it sure so we keep the same behavior as before.
Alexis Menard (darktears)
Comment 8
2012-12-04 10:55:19 PST
(In reply to
comment #7
)
> (From update of
attachment 177505
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=177505&action=review
> > >> Source/WebCore/css/CSSParser.cpp:1657 > >> + return value && value->unit == CSSParserValue::Operator && value->iValue == '/'; > > > > This adds an extra null check. Seems like an unwanted change. Maybe make this take a CSSParserValue& and put * characters at the call sites? Or just leave out the null check? Or replace it with an assertion? > > I can just remove it sure so we keep the same behavior as before.
Should I rollout / reupload the patch here? Or I just commit leaving out the null check?
Ryosuke Niwa
Comment 9
2012-12-04 11:16:58 PST
Comment on
attachment 177505
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=177505&action=review
>>>> Source/WebCore/css/CSSParser.cpp:1657 >>>> + return value && value->unit == CSSParserValue::Operator && value->iValue == '/'; >>> >>> This adds an extra null check. Seems like an unwanted change. Maybe make this take a CSSParserValue& and put * characters at the call sites? Or just leave out the null check? Or replace it with an assertion? >> >> I can just remove it sure so we keep the same behavior as before. > > Should I rollout / reupload the patch here? Or I just commit leaving out the null check?
Oh oops, I didn’t realize that. Please remove value && and replace it with ASSERT(value) although looking at validWidth, we don’t have assertions like that elsewhere :/
Alexis Menard (darktears)
Comment 10
2012-12-04 11:34:35 PST
(In reply to
comment #9
)
> (From update of
attachment 177505
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=177505&action=review
> > >>>> Source/WebCore/css/CSSParser.cpp:1657 > >>>> + return value && value->unit == CSSParserValue::Operator && value->iValue == '/'; > >>> > >>> This adds an extra null check. Seems like an unwanted change. Maybe make this take a CSSParserValue& and put * characters at the call sites? Or just leave out the null check? Or replace it with an assertion? > >> > >> I can just remove it sure so we keep the same behavior as before. > > > > Should I rollout / reupload the patch here? Or I just commit leaving out the null check? > > Oh oops, I didn’t realize that. Please remove value && and replace it with ASSERT(value) although looking at validWidth, we don’t have assertions like that elsewhere :/
Landed with
http://trac.webkit.org/changeset/136540
. Unfortunately webkit-patch did not do the right thing as
https://bugs.webkit.org/show_bug.cgi?id=40652
. Sorry about that.
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