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

Unified Diff: Source/core/animation/LengthBoxStyleInterpolation.cpp

Issue 1303173007: Oilpan: Unship Oilpan from CSSValues Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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: Source/core/animation/LengthBoxStyleInterpolation.cpp
diff --git a/Source/core/animation/LengthBoxStyleInterpolation.cpp b/Source/core/animation/LengthBoxStyleInterpolation.cpp
index 53440c0aae4c8741b248d0a92d6d43adae1c025b..7d5eb60b41f742a1a9b3f7c2e858020ef99bc8e2 100644
--- a/Source/core/animation/LengthBoxStyleInterpolation.cpp
+++ b/Source/core/animation/LengthBoxStyleInterpolation.cpp
@@ -65,7 +65,7 @@ bool LengthBoxStyleInterpolation::usesDefaultInterpolation(const CSSValue& start
namespace {
-PassRefPtrWillBeRawPtr<CSSPrimitiveValue> indexedValueToLength(InterpolableList& lengthBox, size_t i, CSSPrimitiveValue* start[], CSSPrimitiveValue* end[])
+PassRefPtr<CSSPrimitiveValue> indexedValueToLength(InterpolableList& lengthBox, size_t i, CSSPrimitiveValue* start[], CSSPrimitiveValue* end[])
{
if (lengthBox.get(i)->isBool()) {
if (toInterpolableBool(lengthBox.get(i))->value())
@@ -77,14 +77,14 @@ PassRefPtrWillBeRawPtr<CSSPrimitiveValue> indexedValueToLength(InterpolableList&
}
-PassRefPtrWillBeRawPtr<CSSValue> LengthBoxStyleInterpolation::interpolableValueToLengthBox(InterpolableValue* value, const CSSValue& originalStart, const CSSValue& originalEnd)
+PassRefPtr<CSSValue> LengthBoxStyleInterpolation::interpolableValueToLengthBox(InterpolableValue* value, const CSSValue& originalStart, const CSSValue& originalEnd)
{
InterpolableList* lengthBox = toInterpolableList(value);
Rect* startRect = toCSSPrimitiveValue(originalStart).getRectValue();
Rect* endRect = toCSSPrimitiveValue(originalEnd).getRectValue();
CSSPrimitiveValue* startSides[4] = { startRect->left(), startRect->right(), startRect->top(), startRect->bottom() };
CSSPrimitiveValue* endSides[4] = { endRect->left(), endRect->right(), endRect->top(), endRect->bottom() };
- RefPtrWillBeRawPtr<Rect> result = Rect::create();
+ RefPtr<Rect> result = Rect::create();
result->setLeft(indexedValueToLength(*lengthBox, 0, startSides, endSides));
result->setRight(indexedValueToLength(*lengthBox, 1, startSides, endSides));
@@ -105,8 +105,6 @@ void LengthBoxStyleInterpolation::apply(StyleResolverState& state) const
DEFINE_TRACE(LengthBoxStyleInterpolation)
{
StyleInterpolation::trace(visitor);
- visitor->trace(m_startCSSValue);
- visitor->trace(m_endCSSValue);
}
}
« no previous file with comments | « Source/core/animation/LengthBoxStyleInterpolation.h ('k') | Source/core/animation/LengthBoxStyleInterpolationTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698