RESOLVED FIXED Bug 81901
[CSS Regions] In region styling (@-webkit-region) the position for CSS rules is incorrectly computed
https://bugs.webkit.org/show_bug.cgi?id=81901
Summary [CSS Regions] In region styling (@-webkit-region) the position for CSS rules ...
Mihai Balan
Reported 2012-03-22 05:59:31 PDT
When having multiple @-webkit-region rules for the same region that contain the same declaration, the latter declaration does not override the former declaration. However, this only happens if the former @-webkit-region rule contains a CSS declaration for the * selector.
Attachments
Proposed fix and ref-tests (5.35 KB, patch)
2012-03-26 06:03 PDT, Mihai Balan
koivisto: review+
kling: commit-queue-
Fixed duplicate changelog entry. (4.32 KB, patch)
2012-03-26 06:48 PDT, Mihai Balan
koivisto: commit-queue-
Fixed changelog problems. (4.71 KB, patch)
2012-03-26 07:29 PDT, Mihai Balan
no flags
Mihai Balan
Comment 1 2012-03-26 05:13:30 PDT
After some more investigations the problem turned out to be the fact that the position associated with a RuleSet was incorrectly computed for region styling - the number of rules inside the @-webkit-region declarations was basically ignored when computing the position for the rules inside them.
Mihai Balan
Comment 2 2012-03-26 06:03:45 PDT
Created attachment 133789 [details] Proposed fix and ref-tests
Antti Koivisto
Comment 3 2012-03-26 06:38:57 PDT
Comment on attachment 133789 [details] Proposed fix and ref-tests r=me m_ruleCount is pretty silly, some sort of refactoring would be good.
Andreas Kling
Comment 4 2012-03-26 06:40:21 PDT
Comment on attachment 133789 [details] Proposed fix and ref-tests Double changelog entries needs to be fixed before landing.
Antti Koivisto
Comment 5 2012-03-26 06:40:58 PDT
Comment on attachment 133789 [details] Proposed fix and ref-tests ChangeLogs are doubled.
Mihai Balan
Comment 6 2012-03-26 06:48:35 PDT
Created attachment 133794 [details] Fixed duplicate changelog entry.
Antti Koivisto
Comment 7 2012-03-26 07:19:05 PDT
Comment on attachment 133794 [details] Fixed duplicate changelog entry. View in context: https://bugs.webkit.org/attachment.cgi?id=133794&action=review > Source/WebCore/ChangeLog:12 > +2012-03-26 Mihai Balan <mibalan@adobe.com> > + > + Fixing style > + > + Cleaned up code > + > + Initial fix and tests > + > + [CSS Regions] In region styling (@-webkit-region) the position for CSS rules is incorrectly computed > + https://bugs.webkit.org/show_bug.cgi?id=81901 > + > + Reviewed by NOBODY (OOPS!). Please also update the ChangeLogs to follow our usual format: Bug title. Bug URL. Reviewed by ... The reasoning for and description of the code change
Mihai Balan
Comment 8 2012-03-26 07:29:55 PDT
Created attachment 133807 [details] Fixed changelog problems.
WebKit Review Bot
Comment 9 2012-03-26 08:16:53 PDT
Comment on attachment 133807 [details] Fixed changelog problems. Clearing flags on attachment: 133807 Committed r112099: <http://trac.webkit.org/changeset/112099>
WebKit Review Bot
Comment 10 2012-03-26 08:16:57 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.