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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp

Issue 2713673005: client-goodbye
Patch Set: Created 3 years, 10 months 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/PaintLayerPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp b/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
index 74fefefb6a647bfc054f3798ad8fa35ded663260..4924cabbcbb2d952c72968a385f311dcbb1463a6 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
@@ -807,8 +807,11 @@ PaintResult PaintLayerPainter::paintFragmentByApplyingTransform(
// matrix with the origin baked in.
FloatPoint3D transformOrigin;
Transform3DRecorder transform3DRecorder(
- context, *m_paintLayer.layoutObject(),
- DisplayItem::kTransform3DElementTransform, transform, transformOrigin);
+ context, DisplayItem::kTransform3DElementTransform, transform,
+ transformOrigin, m_paintLayer.layoutObject()->visualRect(),
+ m_paintLayer.layoutObject()->debugName(),
+ m_paintLayer.layoutObject()
+ ->paintedOutputOfObjectHasNoEffectRegardlessOfSize());
// Now do a paint with the root layer shifted to be us.
PaintLayerPaintingInfo transformedPaintingInfo(
@@ -919,9 +922,13 @@ void PaintLayerPainter::paintOverflowControlsForFragments(
if (!RuntimeEnabledFeatures::slimmingPaintV2Enabled() &&
!localPaintingInfo.scrollOffsetAccumulation.isZero()) {
cullRect.move(localPaintingInfo.scrollOffsetAccumulation);
- scrollRecorder.emplace(context, *m_paintLayer.layoutObject(),
- DisplayItem::kScrollOverflowControls,
- localPaintingInfo.scrollOffsetAccumulation);
+ scrollRecorder.emplace(
+ context, DisplayItem::kScrollOverflowControls,
+ localPaintingInfo.scrollOffsetAccumulation,
+ m_paintLayer.layoutObject()->visualRect(),
+ m_paintLayer.layoutObject()->debugName(),
+ m_paintLayer.layoutObject()
+ ->paintedOutputOfObjectHasNoEffectRegardlessOfSize());
}
// We pass IntPoint() as the paint offset here, because
@@ -1000,8 +1007,12 @@ void PaintLayerPainter::paintFragmentWithPhase(
paintOffset += paintingInfo.scrollOffsetAccumulation;
newCullRect.move(paintingInfo.scrollOffsetAccumulation);
- scrollRecorder.emplace(context, *m_paintLayer.layoutObject(), phase,
- paintingInfo.scrollOffsetAccumulation);
+ scrollRecorder.emplace(
+ context, phase, paintingInfo.scrollOffsetAccumulation,
+ m_paintLayer.layoutObject()->visualRect(),
+ m_paintLayer.layoutObject()->debugName(),
+ m_paintLayer.layoutObject()
+ ->paintedOutputOfObjectHasNoEffectRegardlessOfSize());
}
}
PaintInfo paintInfo(context, pixelSnappedIntRect(newCullRect), phase,
« no previous file with comments | « third_party/WebKit/Source/core/paint/FramePainter.cpp ('k') | third_party/WebKit/Source/core/paint/PartPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698