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

Unified Diff: third_party/WebKit/Source/core/css/resolver/FontBuilder.cpp

Issue 2282413002: Replaced PassRefPtr copies with moves in Source/core. (Closed)
Patch Set: rebased Created 4 years, 3 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/css/resolver/FontBuilder.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/FontBuilder.cpp b/third_party/WebKit/Source/core/css/resolver/FontBuilder.cpp
index 38cade9a2578b7d83ce3d477028fdfb74690e434..ae65491ca188ca721bc78b7cfbc1528e6b1ab80a 100644
--- a/third_party/WebKit/Source/core/css/resolver/FontBuilder.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/FontBuilder.cpp
@@ -145,7 +145,7 @@ void FontBuilder::setLocale(PassRefPtr<const LayoutLocale> locale)
{
set(PropertySetFlag::Locale);
- m_fontDescription.setLocale(locale);
+ m_fontDescription.setLocale(std::move(locale));
}
void FontBuilder::setStyle(FontStyle italic)
@@ -201,7 +201,7 @@ void FontBuilder::setFeatureSettings(PassRefPtr<FontFeatureSettings> settings)
{
set(PropertySetFlag::FeatureSettings);
- m_fontDescription.setFeatureSettings(settings);
+ m_fontDescription.setFeatureSettings(std::move(settings));
}
void FontBuilder::setFamilyDescription(FontDescription& fontDescription, const FontDescription::FamilyDescription& familyDescription)
« no previous file with comments | « third_party/WebKit/Source/core/css/invalidation/InvalidationSet.h ('k') | third_party/WebKit/Source/core/dom/DOMArrayBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698