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

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

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 | « no previous file | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('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.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 3d103410a6c3cd0663eea30d0e2d97ffa91c5402..560f9ad1988cd9a2d050a40168f6049715cae178 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -86,7 +86,6 @@
#include "platform/transforms/TransformOperations.h"
#include "platform/wtf/Forward.h"
#include "platform/wtf/LeakAnnotations.h"
-#include "platform/wtf/PassRefPtr.h"
#include "platform/wtf/RefCounted.h"
#include "platform/wtf/RefVector.h"
#include "platform/wtf/Vector.h"
@@ -254,16 +253,16 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
ALWAYS_INLINE ComputedStyle();
ALWAYS_INLINE ComputedStyle(const ComputedStyle&);
- static PassRefPtr<ComputedStyle> CreateInitialStyle();
+ static RefPtr<ComputedStyle> CreateInitialStyle();
// TODO(shend): Remove this. Initial style should not be mutable.
static ComputedStyle& MutableInitialStyle();
public:
- static PassRefPtr<ComputedStyle> Create();
- static PassRefPtr<ComputedStyle> CreateAnonymousStyleWithDisplay(
+ static RefPtr<ComputedStyle> Create();
+ static RefPtr<ComputedStyle> CreateAnonymousStyleWithDisplay(
const ComputedStyle& parent_style,
EDisplay);
- static PassRefPtr<ComputedStyle> Clone(const ComputedStyle&);
+ static RefPtr<ComputedStyle> Clone(const ComputedStyle&);
static const ComputedStyle& InitialStyle() { return MutableInitialStyle(); }
static void InvalidateInitialStyle();
@@ -1298,7 +1297,7 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
// Independent transform properties.
// translate
- static PassRefPtr<TranslateTransformOperation> InitialTranslate() {
+ static RefPtr<TranslateTransformOperation> InitialTranslate() {
return nullptr;
}
TranslateTransformOperation* Translate() const {
@@ -1310,9 +1309,7 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
}
// rotate
- static PassRefPtr<RotateTransformOperation> InitialRotate() {
- return nullptr;
- }
+ static RefPtr<RotateTransformOperation> InitialRotate() { return nullptr; }
RotateTransformOperation* Rotate() const {
return rare_non_inherited_data_->transform_->rotate_.Get();
}
@@ -1322,7 +1319,7 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
}
// scale
- static PassRefPtr<ScaleTransformOperation> InitialScale() { return nullptr; }
+ static RefPtr<ScaleTransformOperation> InitialScale() { return nullptr; }
ScaleTransformOperation* Scale() const {
return rare_non_inherited_data_->transform_->scale_.Get();
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698