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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.cpp

Issue 2494333002: Replace wrapUnique(new T(args)) by makeUnique<T>(args) in Blink (Closed)
Patch Set: Drop redundant WTF:: Created 4 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: third_party/WebKit/Source/core/style/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index 10aa6df78fc240a6ffca850be4fb234be7119956..7570afa0514c07d67fa179373ab370989999c05c 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -1138,9 +1138,10 @@ void ComputedStyle::updatePropertySpecificDifferences(
}
void ComputedStyle::addPaintImage(StyleImage* image) {
- if (!m_rareNonInheritedData.access()->m_paintImages)
+ if (!m_rareNonInheritedData.access()->m_paintImages) {
m_rareNonInheritedData.access()->m_paintImages =
- WTF::wrapUnique(new Vector<Persistent<StyleImage>>());
+ makeUnique<Vector<Persistent<StyleImage>>>();
+ }
m_rareNonInheritedData.access()->m_paintImages->append(image);
}

Powered by Google App Engine
This is Rietveld 408576698