Index: third_party/WebKit/Source/core/html/HTMLSelectElementTest.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLSelectElementTest.cpp b/third_party/WebKit/Source/core/html/HTMLSelectElementTest.cpp |
index 8fe031c6f41f8c488eb147c13af33cc99bfd2bac..78ea99c72b202d293acf9b7eb197919b99964765 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLSelectElementTest.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLSelectElementTest.cpp |
@@ -310,8 +310,8 @@ TEST_F(HTMLSelectElementTest, DefaultToolTip) |
document().documentElement()->setInnerHTML("<select size=4><option value="">Placeholder</option><optgroup><option>o2</option></optgroup></select>", ASSERT_NO_EXCEPTION); |
document().view()->updateAllLifecyclePhases(); |
HTMLSelectElement* select = toHTMLSelectElement(document().body()->firstChild()); |
- Element* option = toElement(select->firstChild()); |
- Element* optgroup = toElement(option->nextSibling()); |
+ RefPtrWillBeRawPtr<Element> option = toElement(select->firstChild()); |
+ RefPtrWillBeRawPtr<Element> optgroup = toElement(option->nextSibling()); |
EXPECT_EQ(String(), select->defaultToolTip()) << "defaultToolTip for SELECT without FORM and without required attribute should return null string."; |
EXPECT_EQ(select->defaultToolTip(), option->defaultToolTip()); |