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

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

Issue 1363613002: Save previous paint offset in LayoutObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months 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: 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

Powered by Google App Engine
This is Rietveld 408576698