| Index: cc/base/math_util.cc
|
| diff --git a/cc/base/math_util.cc b/cc/base/math_util.cc
|
| index 7ed0c9a8b712e75931bc3420aec581da2e5b66c2..5b01da998d9138bf8da81711c262240b5bafb3c6 100644
|
| --- a/cc/base/math_util.cc
|
| +++ b/cc/base/math_util.cc
|
| @@ -693,7 +693,7 @@
|
| scoped_ptr<base::DictionaryValue> res(new base::DictionaryValue());
|
| res->SetDouble("width", s.width());
|
| res->SetDouble("height", s.height());
|
| - return res.Pass();
|
| + return res.PassAs<base::Value>();
|
| }
|
|
|
| scoped_ptr<base::Value> MathUtil::AsValue(const gfx::Rect& r) {
|
| @@ -702,7 +702,7 @@
|
| res->AppendInteger(r.y());
|
| res->AppendInteger(r.width());
|
| res->AppendInteger(r.height());
|
| - return res.Pass();
|
| + return res.PassAs<base::Value>();
|
| }
|
|
|
| bool MathUtil::FromValue(const base::Value* raw_value, gfx::Rect* out_rect) {
|
| @@ -730,7 +730,7 @@
|
| scoped_ptr<base::ListValue> res(new base::ListValue());
|
| res->AppendDouble(pt.x());
|
| res->AppendDouble(pt.y());
|
| - return res.Pass();
|
| + return res.PassAs<base::Value>();
|
| }
|
|
|
| void MathUtil::AddToTracedValue(const gfx::Size& s,
|
|
|