Changeset 164232 in webkit


Ignore:
Timestamp:
Feb 17, 2014 11:13:08 AM (10 years ago)
Author:
Simon Fraser
Message:

Graphics buffer issue with clip-path and fixed positioned element
https://bugs.webkit.org/show_bug.cgi?id=126262

Source/WebCore:

Reviewed by Tim Horton.

If an element has a clip-path, backgroundIsKnownToBeOpaqueInRect() needs
to return false so that we don't try to make opaque compositing layers.

Test: compositing/contents-opaque/opaque-with-clip-path.html

  • rendering/RenderBox.cpp:

(WebCore::RenderBox::backgroundIsKnownToBeOpaqueInRect):

LayoutTests:

Reviewed by Tim Horton.

  • compositing/contents-opaque/opaque-with-clip-path-expected.html: Added.
  • compositing/contents-opaque/opaque-with-clip-path.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r164231 r164232  
     12014-02-17  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Graphics buffer issue with clip-path and fixed positioned element
     4        https://bugs.webkit.org/show_bug.cgi?id=126262
     5
     6        Reviewed by Tim Horton.
     7
     8        * compositing/contents-opaque/opaque-with-clip-path-expected.html: Added.
     9        * compositing/contents-opaque/opaque-with-clip-path.html: Added.
     10
    1112014-02-17  Radu Stavila  <stavila@adobe.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r164231 r164232  
     12014-02-17  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Graphics buffer issue with clip-path and fixed positioned element
     4        https://bugs.webkit.org/show_bug.cgi?id=126262
     5
     6        Reviewed by Tim Horton.
     7       
     8        If an element has a clip-path, backgroundIsKnownToBeOpaqueInRect() needs
     9        to return false so that we don't try to make opaque compositing layers.
     10
     11        Test: compositing/contents-opaque/opaque-with-clip-path.html
     12
     13        * rendering/RenderBox.cpp:
     14        (WebCore::RenderBox::backgroundIsKnownToBeOpaqueInRect):
     15
    1162014-02-17  Radu Stavila  <stavila@adobe.com>
    217
  • trunk/Source/WebCore/rendering/RenderBox.cpp

    r164006 r164232  
    12901290    // FIXME: Check the opaqueness of background images.
    12911291
     1292    if (hasClipPath())
     1293        return false;
     1294
    12921295    // FIXME: Use rounded rect if border radius is present.
    12931296    if (style().hasBorderRadius())
    12941297        return false;
     1298   
    12951299    // FIXME: The background color clip is defined by the last layer.
    12961300    if (style().backgroundLayers()->next())
Note: See TracChangeset for help on using the changeset viewer.