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

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

Issue 2812593003: Remove caching of contents paint properties (Closed)
Patch Set: Address reviewer comments 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..8bf9fcaf9430c288ca6943485fbc6941ecd9c73f 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -3580,6 +3580,16 @@ void LayoutObject::SetIsBackgroundAttachmentFixedObject(
GetFrameView()->RemoveBackgroundAttachmentFixedObject(this);
}
+PropertyTreeState LayoutObject::ContentsProperties() const {
+ DCHECK(RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled());
+
+ DCHECK(rare_paint_data_ && rare_paint_data_->LocalBorderBoxProperties());
+ if (!rare_paint_data_)
chrishtr 2017/04/10 20:50:30 Remove this.
pdr. 2017/04/10 20:56:34 Done
+ return PropertyTreeState::Root();
+
+ return rare_paint_data_->ContentsProperties();
+}
+
RarePaintData& LayoutObject::EnsureRarePaintData() {
if (!rare_paint_data_)
rare_paint_data_ = WTF::MakeUnique<RarePaintData>();

Powered by Google App Engine
This is Rietveld 408576698