Index: Source/core/css/BasicShapeFunctions.cpp |
diff --git a/Source/core/css/BasicShapeFunctions.cpp b/Source/core/css/BasicShapeFunctions.cpp |
index 1ebbecccbf91220eec1f851d643f49815e35793a..1ea53ca314a6657fb84fcfb20624ec8a639961de 100644 |
--- a/Source/core/css/BasicShapeFunctions.cpp |
+++ b/Source/core/css/BasicShapeFunctions.cpp |
@@ -40,7 +40,7 @@ |
namespace blink { |
-static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> valueForCenterCoordinate(CSSValuePool& pool, const ComputedStyle& style, const BasicShapeCenterCoordinate& center, EBoxOrient orientation) |
+static PassRefPtr<CSSPrimitiveValue> valueForCenterCoordinate(CSSValuePool& pool, const ComputedStyle& style, const BasicShapeCenterCoordinate& center, EBoxOrient orientation) |
{ |
if (center.direction() == BasicShapeCenterCoordinate::TopLeft) |
return pool.createValue(center.length(), style); |
@@ -50,7 +50,7 @@ static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> valueForCenterCoordinate(CSSVal |
return pool.createValue(Pair::create(pool.createIdentifierValue(keyword), pool.createValue(center.length(), style), Pair::DropIdenticalValues)); |
} |
-static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> basicShapeRadiusToCSSValue(CSSValuePool& pool, const ComputedStyle& style, const BasicShapeRadius& radius) |
+static PassRefPtr<CSSPrimitiveValue> basicShapeRadiusToCSSValue(CSSValuePool& pool, const ComputedStyle& style, const BasicShapeRadius& radius) |
{ |
switch (radius.type()) { |
case BasicShapeRadius::Value: |
@@ -65,15 +65,15 @@ static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> basicShapeRadiusToCSSValue(CSSV |
return nullptr; |
} |
-PassRefPtrWillBeRawPtr<CSSValue> valueForBasicShape(const ComputedStyle& style, const BasicShape* basicShape) |
+PassRefPtr<CSSValue> valueForBasicShape(const ComputedStyle& style, const BasicShape* basicShape) |
{ |
CSSValuePool& pool = cssValuePool(); |
- RefPtrWillBeRawPtr<CSSBasicShape> basicShapeValue = nullptr; |
+ RefPtr<CSSBasicShape> basicShapeValue = nullptr; |
switch (basicShape->type()) { |
case BasicShape::BasicShapeCircleType: { |
const BasicShapeCircle* circle = toBasicShapeCircle(basicShape); |
- RefPtrWillBeRawPtr<CSSBasicShapeCircle> circleValue = CSSBasicShapeCircle::create(); |
+ RefPtr<CSSBasicShapeCircle> circleValue = CSSBasicShapeCircle::create(); |
circleValue->setCenterX(valueForCenterCoordinate(pool, style, circle->centerX(), HORIZONTAL)); |
circleValue->setCenterY(valueForCenterCoordinate(pool, style, circle->centerY(), VERTICAL)); |
@@ -83,7 +83,7 @@ PassRefPtrWillBeRawPtr<CSSValue> valueForBasicShape(const ComputedStyle& style, |
} |
case BasicShape::BasicShapeEllipseType: { |
const BasicShapeEllipse* ellipse = toBasicShapeEllipse(basicShape); |
- RefPtrWillBeRawPtr<CSSBasicShapeEllipse> ellipseValue = CSSBasicShapeEllipse::create(); |
+ RefPtr<CSSBasicShapeEllipse> ellipseValue = CSSBasicShapeEllipse::create(); |
ellipseValue->setCenterX(valueForCenterCoordinate(pool, style, ellipse->centerX(), HORIZONTAL)); |
ellipseValue->setCenterY(valueForCenterCoordinate(pool, style, ellipse->centerY(), VERTICAL)); |
@@ -94,7 +94,7 @@ PassRefPtrWillBeRawPtr<CSSValue> valueForBasicShape(const ComputedStyle& style, |
} |
case BasicShape::BasicShapePolygonType: { |
const BasicShapePolygon* polygon = toBasicShapePolygon(basicShape); |
- RefPtrWillBeRawPtr<CSSBasicShapePolygon> polygonValue = CSSBasicShapePolygon::create(); |
+ RefPtr<CSSBasicShapePolygon> polygonValue = CSSBasicShapePolygon::create(); |
polygonValue->setWindRule(polygon->windRule()); |
const Vector<Length>& values = polygon->values(); |
@@ -106,7 +106,7 @@ PassRefPtrWillBeRawPtr<CSSValue> valueForBasicShape(const ComputedStyle& style, |
} |
case BasicShape::BasicShapeInsetType: { |
const BasicShapeInset* inset = toBasicShapeInset(basicShape); |
- RefPtrWillBeRawPtr<CSSBasicShapeInset> insetValue = CSSBasicShapeInset::create(); |
+ RefPtr<CSSBasicShapeInset> insetValue = CSSBasicShapeInset::create(); |
insetValue->setTop(pool.createValue(inset->top(), style)); |
insetValue->setRight(pool.createValue(inset->right(), style)); |
@@ -183,7 +183,7 @@ static BasicShapeCenterCoordinate convertToCenterCoordinate(const StyleResolverS |
return BasicShapeCenterCoordinate(direction, offset); |
} |
-static BasicShapeRadius cssValueToBasicShapeRadius(const StyleResolverState& state, PassRefPtrWillBeRawPtr<CSSPrimitiveValue> radius) |
+static BasicShapeRadius cssValueToBasicShapeRadius(const StyleResolverState& state, PassRefPtr<CSSPrimitiveValue> radius) |
{ |
if (!radius) |
return BasicShapeRadius(BasicShapeRadius::ClosestSide); |
@@ -236,7 +236,7 @@ PassRefPtr<BasicShape> basicShapeForValue(const StyleResolverState& state, const |
RefPtr<BasicShapePolygon> polygon = BasicShapePolygon::create(); |
polygon->setWindRule(polygonValue->windRule()); |
- const WillBeHeapVector<RefPtrWillBeMember<CSSPrimitiveValue>>& values = polygonValue->values(); |
+ const Vector<RefPtr<CSSPrimitiveValue>>& values = polygonValue->values(); |
for (unsigned i = 0; i < values.size(); i += 2) |
polygon->appendPoint(convertToLength(state, values.at(i).get()), convertToLength(state, values.at(i + 1).get())); |