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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutPartTest.cpp

Issue 1512803004: Use refs for GraphicsContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Created 5 years 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/layout/LayoutPartTest.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutPartTest.cpp b/third_party/WebKit/Source/core/layout/LayoutPartTest.cpp
index 8fb0d7f287882b7ee3dd953708e4a0bc18a868d0..ff2722097203c7b47fe1d47698e9222cfdccdd21 100644
--- a/third_party/WebKit/Source/core/layout/LayoutPartTest.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutPartTest.cpp
@@ -27,10 +27,10 @@ TEST_F(LayoutPartTest, DestroyUpdatesImageQualityController)
RefPtrWillBeRawPtr<Element> element = HTMLElement::create(HTMLNames::divTag, document());
LayoutObject* part = new OverriddenLayoutPart(element.get());
// The third and forth arguments are not important in this test.
- ImageQualityController::imageQualityController()->set(part, 0, this, LayoutSize(1, 1));
- EXPECT_TRUE(ImageQualityController::has(part));
+ ImageQualityController::imageQualityController()->set(*part, 0, this, LayoutSize(1, 1));
+ EXPECT_TRUE(ImageQualityController::has(*part));
part->destroy();
- EXPECT_FALSE(ImageQualityController::has(part));
+ EXPECT_FALSE(ImageQualityController::has(*part));
}
}

Powered by Google App Engine
This is Rietveld 408576698