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 5c70cf5be1bd59418a0c903d56a299d566a96bd4..3b685597d828d7be414c0362dd314c82aad40ff1 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp |
+++ b/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp |
@@ -370,7 +370,7 @@ PaintLayerPainter::PaintResult PaintLayerPainter::paintLayerContents(GraphicsCon |
Optional<ScopedPaintChunkProperties> scopedPaintChunkProperties; |
if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { |
- ObjectPaintProperties* objectPaintProperties = m_paintLayer.layoutObject()->objectPaintProperties(); |
+ const ObjectPaintProperties* objectPaintProperties = m_paintLayer.layoutObject()->objectPaintProperties(); |
ASSERT(objectPaintProperties && objectPaintProperties->localBorderBoxProperties()); |
PaintChunkProperties properties(context.getPaintController().currentPaintChunkProperties()); |
auto& localBorderBoxProperties = *objectPaintProperties->localBorderBoxProperties(); |
@@ -693,7 +693,7 @@ void PaintLayerPainter::paintFragmentWithPhase(PaintPhase phase, const PaintLaye |
Optional<ScrollRecorder> scrollRecorder; |
LayoutPoint paintOffset = -m_paintLayer.layoutBoxLocation(); |
if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) { |
- ObjectPaintProperties* objectPaintProperties = m_paintLayer.layoutObject()->objectPaintProperties(); |
+ const ObjectPaintProperties* objectPaintProperties = m_paintLayer.layoutObject()->objectPaintProperties(); |
ASSERT(objectPaintProperties && objectPaintProperties->localBorderBoxProperties()); |
paintOffset += toSize(objectPaintProperties->localBorderBoxProperties()->paintOffset); |
} else { |