| Index: third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp
|
| index c823e20b596812da42f09521694149aecc0a71ba..21452394cd97688b1adb81f32912238736aa6c97 100644
|
| --- a/third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp
|
| @@ -36,13 +36,6 @@ static const PaintLayer* findParentLayerOnClippingContainerChain(const PaintLaye
|
| while (current) {
|
| if (current->style()->position() == FixedPosition) {
|
| for (current = current->parent(); current && !current->canContainFixedPositionObjects(); current = current->parent()) {
|
| - // All types of clips apply to fixed-position descendants of other fixed-position elements.
|
| - // Note: it's unclear whether this is what the spec says. Firefox does not clip, but Chrome does.
|
| - if (current->style()->position() == FixedPosition && current->hasClipRelatedProperty()) {
|
| - ASSERT(current->hasLayer());
|
| - return static_cast<const LayoutBoxModelObject*>(current)->layer();
|
| - }
|
| -
|
| // CSS clip applies to fixed position elements even for ancestors that are not what the
|
| // fixed element is positioned with respect to.
|
| if (current->hasClip()) {
|
|
|