| Index: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
|
| index d7de3109f0da010c95da2a85d3d993dd1d57901f..34dd49cd490920478e9a9f77f1a6c85429c1ab76 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
|
| @@ -516,13 +516,16 @@ void GraphicsLayer::resetTrackedRasterInvalidations() {
|
| }
|
|
|
| bool GraphicsLayer::hasTrackedRasterInvalidations() const {
|
| - RasterInvalidationTracking* tracking =
|
| - rasterInvalidationTrackingMap().find(this);
|
| - if (tracking)
|
| + if (auto* tracking = getRasterInvalidationTracking())
|
| return !tracking->trackedRasterInvalidations.isEmpty();
|
| return false;
|
| }
|
|
|
| +const RasterInvalidationTracking* GraphicsLayer::getRasterInvalidationTracking()
|
| + const {
|
| + return rasterInvalidationTrackingMap().find(this);
|
| +}
|
| +
|
| void GraphicsLayer::trackRasterInvalidation(const DisplayItemClient& client,
|
| const IntRect& rect,
|
| PaintInvalidationReason reason) {
|
|
|