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

Unified Diff: third_party/WebKit/Source/core/html/HTMLImageElementTest.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/html/HTMLImageElementTest.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLImageElementTest.cpp b/third_party/WebKit/Source/core/html/HTMLImageElementTest.cpp
index 9768137d55eeb324d4e67b08a0fc0a0236e2956d..cc2a42c15a5aef7565476635148e91266d9f4abd 100644
--- a/third_party/WebKit/Source/core/html/HTMLImageElementTest.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLImageElementTest.cpp
@@ -25,7 +25,7 @@ protected:
TEST_F(HTMLImageElementTest, width)
{
- RefPtrWillBeRawPtr<HTMLImageElement> image = HTMLImageElement::create(m_dummyPageHolder->document(), nullptr, /* createdByParser */ false);
+ RawPtr<HTMLImageElement> image = HTMLImageElement::create(m_dummyPageHolder->document(), nullptr, /* createdByParser */ false);
image->setAttribute(HTMLNames::widthAttr, "400");
// TODO(yoav): `width` does not impact resourceWidth until we resolve https://github.com/ResponsiveImagesCG/picture-element/issues/268
EXPECT_EQ(500, image->resourceWidth().width);
@@ -35,7 +35,7 @@ TEST_F(HTMLImageElementTest, width)
TEST_F(HTMLImageElementTest, sourceSize)
{
- RefPtrWillBeRawPtr<HTMLImageElement> image = HTMLImageElement::create(m_dummyPageHolder->document(), nullptr, /* createdByParser */ false);
+ RawPtr<HTMLImageElement> image = HTMLImageElement::create(m_dummyPageHolder->document(), nullptr, /* createdByParser */ false);
image->setAttribute(HTMLNames::widthAttr, "400");
EXPECT_EQ(viewportWidth, image->sourceSize(*image));
image->setAttribute(HTMLNames::sizesAttr, "50vw");

Powered by Google App Engine
This is Rietveld 408576698