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

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

Issue 2665823002: Invalidate caret during paint invalidation (Closed)
Patch Set: Rebaseline Created 3 years, 11 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/PaintControllerPaintTest.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp b/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp
index 018acd1953f2bd04365bda3a9bc14e14918f4fe2..8e9b6d65ad1d26600dda847048353a06e2aac8e4 100644
--- a/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.cpp
@@ -72,11 +72,9 @@ TEST_P(PaintControllerPaintTestForSlimmingPaintV1AndV2,
TestDisplayItem(*layoutView().layer(), DisplayItem::kSubsequence),
TestDisplayItem(layoutView(), documentBackgroundType),
TestDisplayItem(textInlineBox, foregroundType),
- TestDisplayItem(document()
- .frame()
- ->selection()
- .caretDisplayItemClientForTesting(),
- DisplayItem::kCaret), // New!
+ TestDisplayItem(
+ document().frame()->selection().getCaretDisplayItemClient(),
+ DisplayItem::kCaret), // New!
TestDisplayItem(*layoutView().layer(), DisplayItem::kEndSubsequence));
} else {
EXPECT_DISPLAY_LIST(
@@ -86,11 +84,9 @@ TEST_P(PaintControllerPaintTestForSlimmingPaintV1AndV2,
TestDisplayItem(*layoutView().layer(), DisplayItem::kSubsequence),
TestDisplayItem(layoutView(), documentBackgroundType),
TestDisplayItem(textInlineBox, foregroundType),
- TestDisplayItem(document()
- .frame()
- ->selection()
- .caretDisplayItemClientForTesting(),
- DisplayItem::kCaret), // New!
+ TestDisplayItem(
+ document().frame()->selection().getCaretDisplayItemClient(),
+ DisplayItem::kCaret), // New!
TestDisplayItem(*layoutView().layer(), DisplayItem::kEndSubsequence),
TestDisplayItem(layoutView(),
DisplayItem::clipTypeToEndClipType(
@@ -102,7 +98,7 @@ TEST_P(PaintControllerPaintTestForSlimmingPaintV1AndV2,
TestDisplayItem(layoutView(), documentBackgroundType),
TestDisplayItem(textInlineBox, foregroundType),
TestDisplayItem(
- document().frame()->selection().caretDisplayItemClientForTesting(),
+ document().frame()->selection().getCaretDisplayItemClient(),
DisplayItem::kCaret)); // New!
}
}

Powered by Google App Engine
This is Rietveld 408576698