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

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

Issue 2912043002: Remove PassRefPtr in ComputedStyle. (Closed)
Patch Set: 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/ComputedStyle.h ('k') | no next file » | 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 b23deae12c09b1a7efbd8ffb6e4f0f2a13d79aa4..ec8df2f15ca9f5b921f3851d76b4668d3cf1bf2e 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -92,11 +92,11 @@ ASSERT_SIZE(ComputedStyleBase<ComputedStyle>, SameSizeAsComputedStyleBase);
// ComputedStyle.
ASSERT_SIZE(ComputedStyle, SameSizeAsComputedStyle);
-PassRefPtr<ComputedStyle> ComputedStyle::Create() {
+RefPtr<ComputedStyle> ComputedStyle::Create() {
return AdoptRef(new ComputedStyle(InitialStyle()));
}
-PassRefPtr<ComputedStyle> ComputedStyle::CreateInitialStyle() {
+RefPtr<ComputedStyle> ComputedStyle::CreateInitialStyle() {
return AdoptRef(new ComputedStyle());
}
@@ -111,7 +111,7 @@ void ComputedStyle::InvalidateInitialStyle() {
MutableInitialStyle().SetTapHighlightColor(InitialTapHighlightColor());
}
-PassRefPtr<ComputedStyle> ComputedStyle::CreateAnonymousStyleWithDisplay(
+RefPtr<ComputedStyle> ComputedStyle::CreateAnonymousStyleWithDisplay(
const ComputedStyle& parent_style,
EDisplay display) {
RefPtr<ComputedStyle> new_style = ComputedStyle::Create();
@@ -121,7 +121,7 @@ PassRefPtr<ComputedStyle> ComputedStyle::CreateAnonymousStyleWithDisplay(
return new_style;
}
-PassRefPtr<ComputedStyle> ComputedStyle::Clone(const ComputedStyle& other) {
+RefPtr<ComputedStyle> ComputedStyle::Clone(const ComputedStyle& other) {
return AdoptRef(new ComputedStyle(other));
}
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698