Bug 75725 - Remove m_isSpaceSeparatedValueList from CSSValue
Summary: Remove m_isSpaceSeparatedValueList from CSSValue
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tony Chang
URL:
Keywords:
Depends on:
Blocks: 75630
  Show dependency treegraph
 
Reported: 2012-01-06 12:09 PST by Tony Chang
Modified: 2012-01-09 10:34 PST (History)
6 users (show)

See Also:


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

Note You need to log in before you can comment on or make changes to this bug.
Description Tony Chang 2012-01-06 12:09:22 PST
Remove m_isSpaceSeparatedValueList from CSSValueList
Comment 1 Tony Chang 2012-01-06 12:17:43 PST
Created attachment 121466 [details]
Patch
Comment 2 Tony Chang 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.
Comment 3 Alexis Menard (darktears) 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 ?
Comment 4 Tony Chang 2012-01-06 12:30:23 PST
Created attachment 121470 [details]
Patch
Comment 5 Tony Chang 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.
Comment 6 Alexis Menard (darktears) 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
Comment 7 Early Warning System Bot 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
Comment 8 Alexis Menard (darktears) 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.
Comment 9 Tony Chang 2012-01-06 13:49:31 PST
Created attachment 121487 [details]
Patch
Comment 10 Tony Chang 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
+        ;
Comment 11 WebKit Review Bot 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.
Comment 12 Alexis Menard (darktears) 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?
Comment 13 Tony Chang 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.