| Index: third_party/WebKit/Source/core/paint/PaintLayer.h
|
| diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.h b/third_party/WebKit/Source/core/paint/PaintLayer.h
|
| index ccb457742376b6f94f3383fbf753d21ff1483e1b..a9a60ad2bd8caee11fdba778344e75e733a1e763 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayer.h
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayer.h
|
| @@ -259,14 +259,13 @@ public:
|
| bool hasVisibleNonLayerContent() const { return m_hasVisibleNonLayerContent; }
|
| bool hasNonCompositedChild() const { ASSERT(isAllowedToQueryCompositingState()); return m_hasNonCompositedChild; }
|
|
|
| - // Gets the ancestor layer that serves as the containing block of this layer. It is assumed
|
| - // that this layer is established by an out-of-flow positioned layout object (i.e. either
|
| - // absolutely or fixed positioned).
|
| + // Gets the ancestor layer that serves as the containing block of this layer. This is either
|
| + // another out of flow positioned layer, or one that contains paint.
|
| // If |ancestor| is specified, |*skippedAncestor| will be set to true if |ancestor| is found in
|
| // the ancestry chain between this layer and the containing block layer; if not found, it will
|
| // be set to false. Either both |ancestor| and |skippedAncestor| should be nullptr, or none of
|
| // them should.
|
| - PaintLayer* enclosingPositionedAncestor(const PaintLayer* ancestor = nullptr, bool* skippedAncestor = nullptr) const;
|
| + PaintLayer* containingLayerForOutOfFlowPositioned(const PaintLayer* ancestor = nullptr, bool* skippedAncestor = nullptr) const;
|
|
|
| bool isPaintInvalidationContainer() const;
|
|
|
| @@ -457,15 +456,6 @@ public:
|
| PaintLayerClipper& clipper() { return m_clipper; }
|
| const PaintLayerClipper& clipper() const { return m_clipper; }
|
|
|
| - inline bool isPositionedContainer() const
|
| - {
|
| - // FIXME: This is not in sync with containingBlock.
|
| - // LayoutObject::canContainFixedPositionObjects() should probably be used
|
| - // instead.
|
| - LayoutBoxModelObject* layerlayoutObject = layoutObject();
|
| - return isRootLayer() || layerlayoutObject->isPositioned() || hasTransformRelatedProperty();
|
| - }
|
| -
|
| bool scrollsOverflow() const;
|
|
|
| CompositingReasons potentialCompositingReasonsFromStyle() const { return m_potentialCompositingReasonsFromStyle; }
|
|
|