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

Unified Diff: third_party/WebKit/Source/core/paint/NGBoxFragmentPainter.cpp

Issue 2913773002: [WIP][b:eae_mywip_paint] Paint Selection NG.
Patch Set: update Created 3 years, 6 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/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);

Powered by Google App Engine
This is Rietveld 408576698