WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
75725
Remove m_isSpaceSeparatedValueList from CSSValue
https://bugs.webkit.org/show_bug.cgi?id=75725
Summary
Remove m_isSpaceSeparatedValueList from CSSValue
Tony Chang
Reported
2012-01-06 12:09:22 PST
Remove m_isSpaceSeparatedValueList from CSSValueList
Attachments
Patch
(9.32 KB, patch)
2012-01-06 12:17 PST
,
Tony Chang
no flags
Details
Formatted Diff
Diff
Patch
(9.27 KB, patch)
2012-01-06 12:30 PST
,
Tony Chang
no flags
Details
Formatted Diff
Diff
Patch
(9.54 KB, patch)
2012-01-06 13:49 PST
,
Tony Chang
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Tony Chang
Comment 1
2012-01-06 12:17:43 PST
Created
attachment 121466
[details]
Patch
Tony Chang
Comment 2
2012-01-06 12:19:13 PST
This will make it easier to add a slash separated css value list since multiple css properties now use slashes to break up the various parts.
Alexis Menard (darktears)
Comment 3
2012-01-06 12:25:04 PST
Comment on
attachment 121466
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=121466&action=review
That would work and we can possibly add a new ValueListSlashSeparatedClass value.
> Source/WebCore/css/CSSValueList.h:68 > + bool isSpaceSeparated() const { return classType() == ValueListSpaceSeparatedClass || classType() == WebKitCSSFilterSpaceSeparatedClass || classType() == ValueListSpaceSeparatedClass; }
Why two times classType() == ValueListSpaceSeparatedClass ?
Tony Chang
Comment 4
2012-01-06 12:30:23 PST
Created
attachment 121470
[details]
Patch
Tony Chang
Comment 5
2012-01-06 12:31:06 PST
(In reply to
comment #3
)
> (From update of
attachment 121466
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=121466&action=review
> > > Source/WebCore/css/CSSValueList.h:68 > > + bool isSpaceSeparated() const { return classType() == ValueListSpaceSeparatedClass || classType() == WebKitCSSFilterSpaceSeparatedClass || classType() == ValueListSpaceSeparatedClass; } > > Why two times classType() == ValueListSpaceSeparatedClass ?
Oops, I was over aggressive with copy/paste. Removed.
Alexis Menard (darktears)
Comment 6
2012-01-06 12:34:08 PST
Comment on
attachment 121470
[details]
Patch That looks good, less hackish than
https://bugs.webkit.org/show_bug.cgi?id=75714
Early Warning System Bot
Comment 7
2012-01-06 13:21:15 PST
Comment on
attachment 121470
[details]
Patch
Attachment 121470
[details]
did not pass qt-ews (qt): Output:
http://queues.webkit.org/results/11170052
Alexis Menard (darktears)
Comment 8
2012-01-06 13:29:25 PST
Comment on
attachment 121470
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=121470&action=review
> Source/WebCore/css/CSSValueList.h:68 > + bool isSpaceSeparated() const { return classType() == ValueListSpaceSeparatedClass || classType() == WebKitCSSFilterSpaceSeparatedClass; }
You need to protect the classType() == WebKitCSSFilterSpaceSeparatedClass in a #if ENABLE(CSS_FILTERS). We don't enable them in the Qt port.
Tony Chang
Comment 9
2012-01-06 13:49:31 PST
Created
attachment 121487
[details]
Patch
Tony Chang
Comment 10
2012-01-06 13:50:39 PST
There will be a style warning for the semicolon being on its own line, but this seems like the pattern in other places. + return classType() == ValueListSpaceSeparatedClass +#if ENABLE(CSS_FILTERS) + || classType() == WebKitCSSFilterSpaceSeparatedClass +#endif + ;
WebKit Review Bot
Comment 11
2012-01-06 13:55:00 PST
Attachment 121487
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/css/CSSValueList.cpp:57: Line contains only semicolon. If this should be an empty statement, use { } instead. [whitespace/semicolon] [5] Total errors found: 1 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
Alexis Menard (darktears)
Comment 12
2012-01-09 06:16:23 PST
Tony I think this use case was solved by
https://bugs.webkit.org/show_bug.cgi?id=75841
which fixed our need for border-radius. Would you mind closing it?
Tony Chang
Comment 13
2012-01-09 10:34:11 PST
The patch on 75841 seems less good in that we're still going to run out of ClassTypeBits (we're at 31 and have space for 32) soon, but if that's what has been decided on, then I'm happy to close this 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