Changeset 91190 in webkit


Ignore:
Timestamp:
Jul 18, 2011 9:54:03 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

[REGRESSION] Value 'none' breaks multiple background-image display
https://bugs.webkit.org/show_bug.cgi?id=59274

Patch by Mihnea Ovidenie <mihnea@adobe.com> on 2011-07-18
Reviewed by Simon Fraser.

When taking fast path for simple color background, we should draw
the background only if it is the last in the list of backgrounds.
Otherwise, it will obscure the previously drawn backgrounds.

Source/WebCore:

Test: fast/backgrounds/background-fast-path-simple-color.html

  • rendering/RenderBoxModelObject.cpp:

(WebCore::RenderBoxModelObject::paintFillLayerExtended):

LayoutTests:

  • fast/backgrounds/background-fast-path-simple-color-expected.png: Added.
  • fast/backgrounds/background-fast-path-simple-color-expected.txt: Added.
  • fast/backgrounds/background-fast-path-simple-color.html: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r91189 r91190  
     12011-07-18  Mihnea Ovidenie  <mihnea@adobe.com>
     2
     3        [REGRESSION] Value 'none' breaks multiple background-image display
     4        https://bugs.webkit.org/show_bug.cgi?id=59274
     5
     6        Reviewed by Simon Fraser.
     7
     8        When taking fast path for simple color background, we should draw
     9        the background only if it is the last in the list of backgrounds.
     10        Otherwise, it will obscure the previously drawn backgrounds.
     11
     12        * fast/backgrounds/background-fast-path-simple-color-expected.png: Added.
     13        * fast/backgrounds/background-fast-path-simple-color-expected.txt: Added.
     14        * fast/backgrounds/background-fast-path-simple-color.html: Added.
     15
    1162011-07-18  Yi Shen  <yi.4.shen@nokia.com>
    217
  • trunk/Source/WebCore/ChangeLog

    r91189 r91190  
     12011-07-18  Mihnea Ovidenie  <mihnea@adobe.com>
     2
     3        [REGRESSION] Value 'none' breaks multiple background-image display
     4        https://bugs.webkit.org/show_bug.cgi?id=59274
     5
     6        Reviewed by Simon Fraser.
     7
     8        When taking fast path for simple color background, we should draw
     9        the background only if it is the last in the list of backgrounds.
     10        Otherwise, it will obscure the previously drawn backgrounds.
     11
     12        Test: fast/backgrounds/background-fast-path-simple-color.html
     13
     14        * rendering/RenderBoxModelObject.cpp:
     15        (WebCore::RenderBoxModelObject::paintFillLayerExtended):
     16
    1172011-07-18  Yi Shen  <yi.4.shen@nokia.com>
    218
  • trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp

    r91090 r91190  
    627627   
    628628    // Fast path for drawing simple color backgrounds.
    629     if (!isRoot && !clippedWithLocalScrolling && !shouldPaintBackgroundImage && isBorderFill) {
     629    if (!isRoot && !clippedWithLocalScrolling && !shouldPaintBackgroundImage && isBorderFill && !bgLayer->next()) {
    630630        if (!colorVisible)
    631631            return;
Note: See TracChangeset for help on using the changeset viewer.