Changeset 63213 in webkit


Ignore:
Timestamp:
Jul 13, 2010 9:37:53 AM (14 years ago)
Author:
andreas.kling@nokia.com
Message:

2010-07-13 Sheriff Bot <webkit.review.bot@gmail.com>

Unreviewed, rolling out r63192.
http://trac.webkit.org/changeset/63192
https://bugs.webkit.org/show_bug.cgi?id=42173

Broke fast/backgrounds/size/contain-and-cover.html (Requested
by kling on #webkit).

  • manual-tests/css3-background-layer-count.html: Removed.
  • rendering/style/FillLayer.cpp: (WebCore::FillLayer::cullEmptyLayers):
Location:
trunk/WebCore
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r63211 r63213  
     12010-07-13  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r63192.
     4        http://trac.webkit.org/changeset/63192
     5        https://bugs.webkit.org/show_bug.cgi?id=42173
     6
     7        Broke fast/backgrounds/size/contain-and-cover.html (Requested
     8        by kling on #webkit).
     9
     10        * manual-tests/css3-background-layer-count.html: Removed.
     11        * rendering/style/FillLayer.cpp:
     12        (WebCore::FillLayer::cullEmptyLayers):
     13
    1142010-07-13  Marcus Bulach  <bulach@chromium.org>
    215
  • trunk/WebCore/rendering/style/FillLayer.cpp

    r63192 r63213  
    244244void FillLayer::cullEmptyLayers()
    245245{
    246     // CSS3 background layering: the number of background layers is determined
    247     // by the number of values in the 'background-image' property.
    248     // http://www.w3.org/TR/css3-background/#layering
    249 
    250246    FillLayer* next;
    251247    for (FillLayer* p = this; p; p = next) {
    252248        next = p->m_next;
    253         if (!next)
    254             break;
    255 
    256         bool anyAttributeSet = next->isXPositionSet()
    257             || next->isYPositionSet()
    258             || next->isAttachmentSet()
    259             || next->isClipSet()
    260             || next->isCompositeSet()
    261             || next->isOriginSet()
    262             || next->isRepeatXSet()
    263             || next->isRepeatYSet()
    264             || next->isSizeSet();
    265 
    266         if (!next->isImageSet() || !anyAttributeSet) {
     249        if (next && !next->isImageSet() &&
     250            !next->isXPositionSet() && !next->isYPositionSet() &&
     251            !next->isAttachmentSet() && !next->isClipSet() &&
     252            !next->isCompositeSet() && !next->isOriginSet() &&
     253            !next->isRepeatXSet() && !next->isRepeatYSet()
     254            && !next->isSizeSet()) {
    267255            delete next;
    268256            p->m_next = 0;
Note: See TracChangeset for help on using the changeset viewer.