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

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

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/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index e060b085fb649f794af4dc872ae29eabeb44cd44..a3f659a41fe1b3f9ff0251d9893730b1ff95ac0c 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1665,7 +1665,7 @@ public:
void setCy(const Length& cy) { accessSVGStyle().setCy(cy); }
// d
- void setD(PassRefPtr<StylePath> d) { accessSVGStyle().setD(d); }
+ void setD(PassRefPtr<StylePath> d) { accessSVGStyle().setD(std::move(d)); }
// x
void setX(const Length& x) { accessSVGStyle().setX(x); }
@@ -1713,7 +1713,7 @@ public:
// stroke-dasharray
SVGDashArray* strokeDashArray() const { return svgStyle().strokeDashArray(); }
- void setStrokeDashArray(PassRefPtr<SVGDashArray> array) { accessSVGStyle().setStrokeDashArray(array); }
+ void setStrokeDashArray(PassRefPtr<SVGDashArray> array) { accessSVGStyle().setStrokeDashArray(std::move(array)); }
// stroke-dashoffset
const Length& strokeDashOffset() const { return svgStyle().strokeDashOffset(); }
« no previous file with comments | « third_party/WebKit/Source/core/style/ClipPathOperation.h ('k') | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698