Index: third_party/WebKit/Source/core/paint/NGBoxFragmentPainter.cpp |
diff --git a/third_party/WebKit/Source/core/paint/NGBoxFragmentPainter.cpp b/third_party/WebKit/Source/core/paint/NGBoxFragmentPainter.cpp |
index f828559eb1563f5418a690e2a28323439aa386ea..a831a6c1203d2b3826b689cb22f40c6ee8f98a31 100644 |
--- a/third_party/WebKit/Source/core/paint/NGBoxFragmentPainter.cpp |
+++ b/third_party/WebKit/Source/core/paint/NGBoxFragmentPainter.cpp |
@@ -44,6 +44,10 @@ void NGBoxFragmentPainter::PaintLineBox( |
const LayoutPoint& paint_offset) { |
// TODO: Should this check if the line boxes intersects with the dirty rect |
// like legacy layout or do we want to change the invalidation logic? |
+ if (DrawingRecorder::UseCachedDrawingIfPossible( |
kojii
2017/06/16 11:25:57
Can explain what this is?
|
+ paint_info.context, *fragment, |
+ DisplayItem::PaintPhaseToDrawingType(paint_info.phase))) |
+ return; |
LayoutRect overflow_rect(box_fragment_->VisualOverflowRect()); |
overflow_rect.MoveBy(paint_offset); |