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

Unified Diff: third_party/WebKit/Source/web/tests/VisualViewportTest.cpp

Issue 2868283003: [SPv2] Renaming and refactor about raster invalidation tracking (Closed)
Patch Set: - Created 3 years, 7 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/web/tests/VisualViewportTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
index d4c6a21057e35ccb8c9c99b96a6a6d4f84d1c24c..a684bda1279ba72c9f847dea644a85126b388baf 100644
--- a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
+++ b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
@@ -2255,8 +2255,7 @@ TEST_P(VisualViewportTest, ResizeNonCompositedAndFixedBackground) {
// If no invalidations occured, this will be a nullptr.
ASSERT_TRUE(invalidation_tracking);
- const auto* raster_invalidations =
- &invalidation_tracking->tracked_raster_invalidations;
+ const auto* raster_invalidations = &invalidation_tracking->invalidations;
bool root_layer_scrolling = GetParam();
@@ -2287,7 +2286,7 @@ TEST_P(VisualViewportTest, ResizeNonCompositedAndFixedBackground) {
->GraphicsLayerBacking(document->GetLayoutView())
->GetRasterInvalidationTracking();
ASSERT_TRUE(invalidation_tracking);
- raster_invalidations = &invalidation_tracking->tracked_raster_invalidations;
+ raster_invalidations = &invalidation_tracking->invalidations;
// Once again, the entire page should have been invalidated.
expectedHeight = root_layer_scrolling ? 480 : 1000;
@@ -2429,8 +2428,7 @@ TEST_P(VisualViewportTest, InvalidateLayoutViewWhenDocumentSmallerThanView) {
->GraphicsLayerBacking()
->GetRasterInvalidationTracking();
ASSERT_TRUE(invalidation_tracking);
- const auto* raster_invalidations =
- &invalidation_tracking->tracked_raster_invalidations;
+ const auto* raster_invalidations = &invalidation_tracking->invalidations;
ASSERT_EQ(1u, raster_invalidations->size());
EXPECT_EQ(IntRect(0, 0, page_width, largest_height),
(*raster_invalidations)[0].rect);

Powered by Google App Engine
This is Rietveld 408576698