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

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

Issue 2812593003: Remove caching of contents paint properties (Closed)
Patch Set: Created 3 years, 8 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 22a31999a0631cfd3d6b81222a611cbd7168140b..b306602e4a9c3848e1369064b2e4f5c329a057e7 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -3580,6 +3580,13 @@ void LayoutObject::SetIsBackgroundAttachmentFixedObject(
GetFrameView()->RemoveBackgroundAttachmentFixedObject(this);
}
+PropertyTreeState LayoutObject::ContentsProperties() const {
+ DCHECK(RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled());
+ if (rare_paint_data_)
+ return rare_paint_data_->ContentsProperties();
+ return PropertyTreeState::Root();
chrishtr 2017/04/10 19:44:50 Why would 3585 ever fail if the code is correct?
pdr. 2017/04/10 20:05:34 No. In the latest patch I refactored this to make
+}
+
RarePaintData& LayoutObject::EnsureRarePaintData() {
if (!rare_paint_data_)
rare_paint_data_ = WTF::MakeUnique<RarePaintData>();

Powered by Google App Engine
This is Rietveld 408576698