| Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| index 9b54b8cf5f9b6d67a572ec41be4774138e0626f1..fadbac12370bb071567339e6f3ca718115603e5c 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
|
| @@ -139,6 +139,7 @@ struct SameSizeAsLayoutObject {
|
| unsigned m_bitfields2;
|
| LayoutRect rect; // Stores the previous paint invalidation rect.
|
| LayoutPoint position; // Stores the previous position from the paint invalidation container.
|
| + unsigned cacheGeneration;
|
| };
|
|
|
| static_assert(sizeof(LayoutObject) == sizeof(SameSizeAsLayoutObject), "LayoutObject should stay small");
|
| @@ -1278,8 +1279,7 @@ const LayoutBoxModelObject* LayoutObject::invalidatePaintRectangleInternal(const
|
|
|
| void LayoutObject::invalidatePaintRectangle(const LayoutRect& rect) const
|
| {
|
| - const LayoutBoxModelObject* paintInvalidationContainer = invalidatePaintRectangleInternal(rect);
|
| - if (paintInvalidationContainer) {
|
| + if (const LayoutBoxModelObject* paintInvalidationContainer = invalidatePaintRectangleInternal(rect)) {
|
| // Don't need to change the paint invalidation bounds of the client, so pass nullptr.
|
| invalidateDisplayItemClients(*paintInvalidationContainer, PaintInvalidationRectangle, nullptr);
|
| }
|
|
|