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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 1508223005: Client side display item cache flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Created 5 years 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/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);
}

Powered by Google App Engine
This is Rietveld 408576698