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

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

Issue 1363613002: Save previous paint offset in LayoutObject (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: No union (many compilers don't allow constructors); Fix a typo perhaps caused by switching to combiā€¦ 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: 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 d0c0e001d1fd64cf6d40c402f37b7d80c5e0a784..dddb2c82c581d9e7f70b6d3109aa5ead1555cf8f 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/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_previousPositionFromPaintInvalidationBacking = uninitializedPaintOffset();
+
#ifndef NDEBUG
layoutObjectCounter.increment();
#endif
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/paint/BlockPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698