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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintChunkTest.cpp

Issue 2793233002: Remove begin/end subseq. display items, and store on PaintController instead. (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/platform/graphics/paint/PaintChunkTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintChunkTest.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintChunkTest.cpp
index 7afd52cd7a0d98aa4a736ae2e2242a8fb951cd2c..a212dfb4bd868ed55e4050ec93cf4255a084a08a 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintChunkTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintChunkTest.cpp
@@ -36,20 +36,13 @@ TEST(PaintChunkTest, IdNotMatches) {
PaintChunkProperties properties;
FakeDisplayItemClient client1;
client1.updateCacheGeneration();
- DisplayItem::Id id1a(client1, DisplayItem::kDrawingFirst);
- DisplayItem::Id id1b(client1, DisplayItem::kSubsequence);
- EXPECT_FALSE(PaintChunk(0, 1, &id1a, properties)
- .matches(PaintChunk(0, 1, &id1b, properties)));
- EXPECT_FALSE(PaintChunk(0, 1, &id1b, properties)
- .matches(PaintChunk(0, 1, &id1a, properties)));
+ DisplayItem::Id id1(client1, DisplayItem::kDrawingFirst);
FakeDisplayItemClient client2;
client2.updateCacheGeneration();
DisplayItem::Id id2(client2, DisplayItem::kDrawingFirst);
- EXPECT_FALSE(PaintChunk(0, 1, &id1a, properties)
- .matches(PaintChunk(0, 1, &id2, properties)));
EXPECT_FALSE(PaintChunk(0, 1, &id2, properties)
- .matches(PaintChunk(0, 1, &id1a, properties)));
+ .matches(PaintChunk(0, 1, &id1, properties)));
}
TEST(PaintChunkTest, IdNotMatchesNull) {

Powered by Google App Engine
This is Rietveld 408576698