Changeset 33458 in webkit


Ignore:
Timestamp:
May 14, 2008 3:07:56 PM (16 years ago)
Author:
hyatt@apple.com
Message:

2008-05-14 David Hyatt <hyatt@apple.com>

Fix for bug https://bugs.webkit.org/show_bug.cgi?id=16130.

Opacity, transforms, reflections and masks should not honor z-index unless the element is also
positioned. Always reset to auto if the element is not positioned (and then the following code will
adjust auto to 0 as needed).

Reviewed by Dan Bernstein

  • css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::adjustRenderStyle):
Location:
trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r33457 r33458  
     12008-05-14  David Hyatt  <hyatt@apple.com>
     2
     3        Fix for bug https://bugs.webkit.org/show_bug.cgi?id=16130.
     4
     5        Opacity, transforms, reflections and masks should not honor z-index unless the element is also
     6        positioned.  Always reset to auto if the element is not positioned (and then the following code will
     7        adjust auto to 0 as needed).
     8
     9        Reviewed by Dan Bernstein
     10
     11        * css/CSSStyleSelector.cpp:
     12        (WebCore::CSSStyleSelector::adjustRenderStyle):
     13
    1142008-05-14  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/WebCore/css/CSSStyleSelector.cpp

    r32836 r33458  
    11821182    }
    11831183
    1184     // Make sure our z-index value is only applied if the object is positioned,
    1185     // relatively positioned, transparent, or has a transform/mask/reflection.
    1186     if (style->position() == StaticPosition && style->opacity() == 1.0f && !style->hasTransform() && !style->hasMask() && !style->boxReflect())
     1184    // Make sure our z-index value is only applied if the object is positioned.
     1185    if (style->position() == StaticPosition)
    11871186        style->setHasAutoZIndex();
    11881187
Note: See TracChangeset for help on using the changeset viewer.