Changeset 208319 in webkit


Ignore:
Timestamp:
Nov 2, 2016, 7:43:15 PM (9 years ago)
Author:
Simon Fraser
Message:

Followup after r208314.

The style created for reflections contains transforms and a mask, so needs to get explicit
z-index on it. This doesn't change rendering, since this layer has no children.

Fixes assertions in various reflection tests.

  • rendering/RenderLayer.cpp:

(WebCore::RenderLayer::calculateClipRects):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/Source/WebCore/ChangeLog

    r208314 r208319  
     12016-11-02  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Followup after r208314.
     4
     5        The style created for reflections contains transforms and a mask, so needs to get explicit
     6        z-index on it. This doesn't change rendering, since this layer has no children.
     7
     8        Fixes assertions in various reflection tests.
     9
     10        * rendering/RenderLayer.cpp:
     11        (WebCore::RenderLayer::calculateClipRects):
     12
    1132016-11-02  Simon Fraser  <simon.fraser@apple.com>
    214
  • TabularUnified trunk/Source/WebCore/rendering/RenderLayer.cpp

    r208314 r208319  
    69266926    // Map in our mask.
    69276927    newStyle.setMaskBoxImage(renderer().style().boxReflect()->mask());
     6928   
     6929    // Style has transform and mask, so needs to be stacking context.
     6930    newStyle.setZIndex(0);
    69286931
    69296932    return newStyle;
Note: See TracChangeset for help on using the changeset viewer.