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

Unified Diff: Source/core/html/HTMLKeygenElement.cpp

Issue 59113007: Utilize PassRefPtr and C++ refs in more places in ShadowRoot code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make win build happier Created 7 years, 1 month 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: Source/core/html/HTMLKeygenElement.cpp
diff --git a/Source/core/html/HTMLKeygenElement.cpp b/Source/core/html/HTMLKeygenElement.cpp
index 4b20d877b12f812918eb2e722724f2bd0cf73854..70d547f91f78d0d22515fcda70e0c800cd7a2b74 100644
--- a/Source/core/html/HTMLKeygenElement.cpp
+++ b/Source/core/html/HTMLKeygenElement.cpp
@@ -50,7 +50,7 @@ HTMLKeygenElement::HTMLKeygenElement(const QualifiedName& tagName, Document& doc
ensureUserAgentShadowRoot();
}
-void HTMLKeygenElement::didAddUserAgentShadowRoot(ShadowRoot* root)
+void HTMLKeygenElement::didAddUserAgentShadowRoot(ShadowRoot& root)
{
DEFINE_STATIC_LOCAL(AtomicString, keygenSelectPseudoId, ("-webkit-keygen-select", AtomicString::ConstructFromLiteral));
@@ -66,7 +66,7 @@ void HTMLKeygenElement::didAddUserAgentShadowRoot(ShadowRoot* root)
select->appendChild(option);
}
- root->appendChild(select);
+ root.appendChild(select.release());
}
void HTMLKeygenElement::parseAttribute(const QualifiedName& name, const AtomicString& value)

Powered by Google App Engine
This is Rietveld 408576698