Changeset 30162 in webkit


Ignore:
Timestamp:
Feb 11, 2008 10:02:57 PM (16 years ago)
Author:
mitz@apple.com
Message:

WebCore:

Reviewed by Dave Hyatt.

Test: fast/css/last-child-style-sharing.html

  • css/CSSGrammar.y: Changed to call setUsesSiblingRules(true) for all CSS3 selectors that require it.

LayoutTests:

Reviewed by Dave Hyatt.

  • fast/css/last-child-style-sharing.html: Added.
  • platform/mac/fast/css/last-child-style-sharing-expected.checksum: Added.
  • platform/mac/fast/css/last-child-style-sharing-expected.png: Added.
  • platform/mac/fast/css/last-child-style-sharing-expected.txt: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r30157 r30162  
     12008-02-11  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Dave Hyatt.
     4
     5        - test for http://bugs.webkit.org/show_bug.cgi?id=17320
     6          <rdar://problem/5736953> :last-child does not set the "uses sibling rules" flag
     7
     8        * fast/css/last-child-style-sharing.html: Added.
     9        * platform/mac/fast/css/last-child-style-sharing-expected.checksum: Added.
     10        * platform/mac/fast/css/last-child-style-sharing-expected.png: Added.
     11        * platform/mac/fast/css/last-child-style-sharing-expected.txt: Added.
     12
    1132008-02-11  Sam Weinig  <sam@webkit.org>
    214
  • trunk/WebCore/ChangeLog

    r30157 r30162  
     12008-02-11  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Dave Hyatt.
     4
     5        - fix http://bugs.webkit.org/show_bug.cgi?id=17320
     6          <rdar://problem/5736953> :last-child does not set the "uses sibling rules" flag
     7
     8        Test: fast/css/last-child-style-sharing.html
     9
     10        * css/CSSGrammar.y: Changed to call setUsesSiblingRules(true) for all
     11        CSS3 selectors that require it.
     12
    1132008-02-11  Sam Weinig  <sam@webkit.org>
    214
  • trunk/WebCore/css/CSSGrammar.y

    r30069 r30162  
    883883        else if (type == CSSSelector::PseudoEmpty ||
    884884                 type == CSSSelector::PseudoFirstChild ||
    885                  type == CSSSelector::PseudoFirstOfType) {
     885                 type == CSSSelector::PseudoFirstOfType ||
     886                 type == CSSSelector::PseudoLastChild ||
     887                 type == CSSSelector::PseudoLastOfType ||
     888                 type == CSSSelector::PseudoOnlyChild ||
     889                 type == CSSSelector::PseudoOnlyOfType) {
    886890            CSSParser* p = static_cast<CSSParser*>(parser);
    887891            Document* doc = p->document();
     
    918922        if (type == CSSSelector::PseudoUnknown)
    919923            $$ = 0;
    920         else if (type == CSSSelector::PseudoNthChild || type == CSSSelector::PseudoNthOfType) {
     924        else if (type == CSSSelector::PseudoNthChild ||
     925                 type == CSSSelector::PseudoNthOfType ||
     926                 type == CSSSelector::PseudoNthLastChild ||
     927                 type == CSSSelector::PseudoNthLastOfType) {
    921928            if (p->document())
    922929                p->document()->setUsesSiblingRules(true);
     
    933940        if (type == CSSSelector::PseudoUnknown)
    934941            $$ = 0;
    935         else if (type == CSSSelector::PseudoNthChild || type == CSSSelector::PseudoNthOfType) {
     942        else if (type == CSSSelector::PseudoNthChild ||
     943                 type == CSSSelector::PseudoNthOfType ||
     944                 type == CSSSelector::PseudoNthLastChild ||
     945                 type == CSSSelector::PseudoNthLastOfType) {
    936946            if (p->document())
    937947                p->document()->setUsesSiblingRules(true);
     
    949959        if (type == CSSSelector::PseudoUnknown)
    950960            $$ = 0;
    951         else if (type == CSSSelector::PseudoNthChild || type == CSSSelector::PseudoNthOfType) {
     961        else if (type == CSSSelector::PseudoNthChild ||
     962                 type == CSSSelector::PseudoNthOfType ||
     963                 type == CSSSelector::PseudoNthLastChild ||
     964                 type == CSSSelector::PseudoNthLastOfType) {
    952965            if (p->document())
    953966                p->document()->setUsesSiblingRules(true);
Note: See TracChangeset for help on using the changeset viewer.