Index: Source/core/layout/LayoutObject.cpp |
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp |
index d0c0e001d1fd64cf6d40c402f37b7d80c5e0a784..32b49a0a21a38f08c073a4710f9178e3de6a6209 100644 |
--- a/Source/core/layout/LayoutObject.cpp |
+++ b/Source/core/layout/LayoutObject.cpp |
@@ -239,6 +239,10 @@ LayoutObject::LayoutObject(Node* node) |
#endif |
, m_bitfields(node) |
{ |
+ // TODO(wangxianzhu): Move this into initialization list when we enable the feature by default. |
+ if (RuntimeEnabledFeatures::slimmingPaintOffsetCachingEnabled()) |
+ m_previousPaintOffset = uninitializedPaintOffset(); |
+ |
#ifndef NDEBUG |
layoutObjectCounter.increment(); |
#endif |