Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.h

Issue 2521033003: Reland: Don't early out recursion into PaintLayerChildren when computing composited bounds. (Closed)
Patch Set: none Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 900e8ee1c8076553eb252bd8908b847ee91f186b..83a1cca989d786c251052715f5b8aa73b1116597 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.h
@@ -428,14 +428,12 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient {
LayoutRect boxForClipPath() const;
LayoutRect boundingBoxForCompositingOverlapTest() const;
+ LayoutRect boundingBoxForCompositing() const;
// If true, this layer's children are included in its bounds for overlap
// testing. We can't rely on the children's positions if this layer has a
// filter that could have moved the children's pixels around.
bool overlapBoundsIncludeChildren() const;
- LayoutRect boundingBoxForCompositing(
- const PaintLayer* ancestorLayer = 0,
- CalculateBoundsOptions = MaybeIncludeTransformForAncestorLayer) const;
LayoutUnit staticInlinePosition() const { return m_staticInlinePosition; }
LayoutUnit staticBlockPosition() const { return m_staticBlockPosition; }
@@ -1109,6 +1107,17 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient {
bool shouldFragmentCompositedBounds(const PaintLayer* compositingLayer) const;
+ void expandRectForStackingChildren(const PaintLayer* compositedLayer,
+ LayoutRect& result,
+ PaintLayer::CalculateBoundsOptions) const;
+
+ // The return value is in the space of |stackingParent|, if non-null, or
+ // |this| otherwise.
+ LayoutRect boundingBoxForCompositingInternal(
+ const PaintLayer* compositedLayer,
+ const PaintLayer* stackingParent,
+ CalculateBoundsOptions) const;
+
// Self-painting layer is an optimization where we avoid the heavy Layer
// painting machinery for a Layer allocated only to handle the overflow clip
// case.
« no previous file with comments | « third_party/WebKit/Source/core/layout/ClipRect.h ('k') | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698