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

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

Issue 2854493002: Store previous painting clip rects on FragmentData. (Closed)
Patch Set: none 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 ba11080d1292f01d6b4864497998fd6e55cbb228..5e3d361134befeb91db56e233d979ce32104fee2 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -3582,6 +3582,16 @@ LayoutRect LayoutObject::DebugRect() const {
return rect;
}
+FragmentData* LayoutObject::MutableForPainting::FirstFragment() {
+ if (auto* paint_data = layout_object_.GetRarePaintData())
+ return paint_data->Fragment();
+ return nullptr;
+}
+
+FragmentData& LayoutObject::MutableForPainting::EnsureFirstFragment() {
+ return layout_object_.EnsureRarePaintData().EnsureFragment();
+}
+
void LayoutObject::InvalidatePaintForSelection() {
// setSelectionState() propagates the state up the containing block chain to
// tell if a block contains selected nodes or not. If this layout object is
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/paint/FragmentData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698