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 |