| Index: third_party/WebKit/Source/core/layout/compositing/GraphicsLayerUpdater.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/compositing/GraphicsLayerUpdater.cpp b/third_party/WebKit/Source/core/layout/compositing/GraphicsLayerUpdater.cpp
|
| index 855f5175449b065ce7e74c8c996b20c9eca7369b..001c0fbda6b7918ff442713eb9e9c4ead9e0c85b 100644
|
| --- a/third_party/WebKit/Source/core/layout/compositing/GraphicsLayerUpdater.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/compositing/GraphicsLayerUpdater.cpp
|
| @@ -57,8 +57,9 @@ class GraphicsLayerUpdater::UpdateContext {
|
| // TODO(chrishtr) this is not very performant for floats, but they should
|
| // be uncommon enough, and SPv2 will remove this code.
|
| if (layer.layoutObject()->isFloating() && layer.layoutObject()->parent() &&
|
| - !layer.layoutObject()->parent()->isLayoutBlockFlow())
|
| - return layer.layoutObject()->containingBlock()->enclosingLayer();
|
| + !layer.layoutObject()->parent()->isLayoutBlockFlow()) {
|
| + return layer.enclosingLayerWithCompositedLayerMapping(ExcludeSelf);
|
| + }
|
| return layer.stackingNode()->isStacked() ? m_compositingStackingContext
|
| : m_compositingAncestor;
|
| }
|
|
|