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

Unified Diff: Source/core/css/CSSGradientValue.cpp

Issue 931153002: Oilpan: move the GradientStop value object off the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: use transition type Created 5 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSGradientValue.cpp
diff --git a/Source/core/css/CSSGradientValue.cpp b/Source/core/css/CSSGradientValue.cpp
index a6563c95b5a99670bc229541982653a6a465de67..1f86b09498bbbc041709eaa367bd74a8273ea197 100644
--- a/Source/core/css/CSSGradientValue.cpp
+++ b/Source/core/css/CSSGradientValue.cpp
@@ -101,9 +101,7 @@ void CSSGradientValue::sortStopsIfNeeded()
}
}
-class GradientStop {
- ALLOW_ONLY_INLINE_ALLOCATION();
-public:
+struct GradientStop {
Color color;
float offset;
bool specified;
@@ -114,7 +112,7 @@ public:
{ }
};
-void replaceColorHintsWithColorStops(WillBeHeapVector<GradientStop>& stops, const WillBeHeapVector<CSSGradientColorStop, 2>& cssGradientStops)
+static void replaceColorHintsWithColorStops(Vector<GradientStop>& stops, const WillBeHeapVector<CSSGradientColorStop, 2>& cssGradientStops)
{
// This algorithm will replace each color interpolation hint with 9 regular
// color stops. The color values for the new color stops will be calculated
@@ -229,7 +227,7 @@ void CSSGradientValue::addStops(Gradient* gradient, const CSSToLengthConversionD
size_t numStops = m_stops.size();
- WillBeHeapVector<GradientStop> stops(numStops);
+ Vector<GradientStop> stops(numStops);
float gradientLength = 0;
bool computedGradientLength = false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698