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

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

Issue 2911343002: Make PaintImages a class and implement a Clone() method. (Closed)
Patch Set: Rebase Created 3 years, 7 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 | « third_party/WebKit/Source/core/style/BUILD.gn ('k') | third_party/WebKit/Source/core/style/PaintImages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1fe253cdc9ff2d8785062eebf28bdba8d2e7d55c..5db9843097a4d368f3d8e4a1b824cfd7a1b59a0a 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -921,7 +921,7 @@ void ComputedStyle::UpdatePropertySpecificDifferences(
void ComputedStyle::AddPaintImage(StyleImage* image) {
if (!rare_non_inherited_data_.Access()->paint_images_) {
rare_non_inherited_data_.Access()->paint_images_ =
- WTF::MakeUnique<Vector<Persistent<StyleImage>>>();
+ WTF::MakeUnique<PaintImages>();
}
rare_non_inherited_data_.Access()->paint_images_->push_back(image);
}
« no previous file with comments | « third_party/WebKit/Source/core/style/BUILD.gn ('k') | third_party/WebKit/Source/core/style/PaintImages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698