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

Unified Diff: third_party/WebKit/Source/core/css/PropertyRegistry.cpp

Issue 2437883002: Made PassRefPtr move only and replaced new copies with moves. (Closed)
Patch Set: Removed stale comment Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/StyleNonInheritedVariables.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/PropertyRegistry.cpp
diff --git a/third_party/WebKit/Source/core/css/PropertyRegistry.cpp b/third_party/WebKit/Source/core/css/PropertyRegistry.cpp
index fb0229591a5069f5e2916396aa1767fb695c0466..692232579de7c78805ccfe5b57b579e1100ffe23 100644
--- a/third_party/WebKit/Source/core/css/PropertyRegistry.cpp
+++ b/third_party/WebKit/Source/core/css/PropertyRegistry.cpp
@@ -13,8 +13,8 @@ void PropertyRegistry::registerProperty(
const CSSValue* initial,
PassRefPtr<CSSVariableData> initialVariableData) {
DCHECK(!registration(name));
- m_registrations.set(
- name, new Registration(syntax, inherits, initial, initialVariableData));
+ m_registrations.set(name, new Registration(syntax, inherits, initial,
+ std::move(initialVariableData)));
}
const PropertyRegistry::Registration* PropertyRegistry::registration(
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/StyleNonInheritedVariables.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698