Bug 82127 - Don't use CSSRuleList for child rule ownership
Summary: Don't use CSSRuleList for child rule ownership
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 77745
  Show dependency treegraph
 
Reported: 2012-03-24 07:22 PDT by Antti Koivisto
Modified: 2012-04-11 20:54 PDT (History)
5 users (show)

See Also:


Attachments
patch (45.64 KB, patch)
2012-03-24 08:34 PDT, Antti Koivisto
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ec2-cr-linux-04 (9.73 MB, application/zip)
2012-03-24 09:28 PDT, WebKit Review Bot
no flags Details
security check CSSStyleSheet.rules too (46.63 KB, patch)
2012-03-24 10:48 PDT, Antti Koivisto
no flags Details | Formatted Diff | Diff
more correct ChangeLog (46.66 KB, patch)
2012-03-24 11:10 PDT, Antti Koivisto
kling: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Koivisto 2012-03-24 07:22:58 PDT
CSSMediaRule, WebKitCSSKeyframesRule and WebKitRegionRule use CSSRuleList for storing children. They should use a simple rule vector instead. CSSRuleList is a CSSOM type that should be instantiated on demand for API purposes only.
Comment 1 Antti Koivisto 2012-03-24 08:34:28 PDT
Created attachment 133636 [details]
patch
Comment 2 WebKit Review Bot 2012-03-24 08:37:50 PDT
Attachment 133636 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/fast..." exit_code: 1
Source/WebCore/css/CSSRuleList.h:37:  More than one command on the same line  [whitespace/newline] [4]
Total errors found: 1 in 21 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 WebKit Review Bot 2012-03-24 09:28:41 PDT
Comment on attachment 133636 [details]
patch

Attachment 133636 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/12132098

New failing tests:
http/tests/security/cannot-read-cssrules.html
http/tests/security/cannot-read-cssrules-redirect.html
Comment 4 WebKit Review Bot 2012-03-24 09:28:49 PDT
Created attachment 133640 [details]
Archive of layout-test-results from ec2-cr-linux-04

The attached test failures were seen while running run-webkit-tests on the chromium-ews.
Bot: ec2-cr-linux-04  Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'>  Platform: Linux-2.6.35-28-virtual-x86_64-with-Ubuntu-10.10-maverick
Comment 5 Antti Koivisto 2012-03-24 10:48:27 PDT
Created attachment 133641 [details]
security check CSSStyleSheet.rules too
Comment 6 WebKit Review Bot 2012-03-24 10:52:32 PDT
Attachment 133641 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/fast..." exit_code: 1
Source/WebCore/css/CSSRuleList.h:37:  More than one command on the same line  [whitespace/newline] [4]
Total errors found: 1 in 21 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 7 Antti Koivisto 2012-03-24 11:10:25 PDT
Created attachment 133643 [details]
more correct ChangeLog
Comment 8 WebKit Review Bot 2012-03-24 11:14:11 PDT
Attachment 133643 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/fast..." exit_code: 1
Source/WebCore/css/CSSRuleList.h:37:  More than one command on the same line  [whitespace/newline] [4]
Total errors found: 1 in 21 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 9 Andreas Kling 2012-03-25 07:01:48 PDT
Comment on attachment 133643 [details]
more correct ChangeLog

View in context: https://bugs.webkit.org/attachment.cgi?id=133643&action=review

r=me

> Source/WebCore/css/CSSMediaRule.cpp:124
> +        result.append(" ");

Since we are touching this, we should also change " " to ' '. Same comment repeated for other applicable lines.
Comment 10 Antti Koivisto 2012-03-25 13:59:15 PDT
http://trac.webkit.org/changeset/112037
Comment 11 Antti Koivisto 2012-03-25 14:47:56 PDT
...and the test update in http://trac.webkit.org/changeset/112038