Back out 446fbc59aa22 (bug 698205) for orange

This commit is contained in:
Phil Ringnalda 2011-11-08 14:43:24 -08:00
parent 43e6381597
commit 6079b1d0dd

View File

@ -1021,7 +1021,7 @@ DrawTargetD2D::CreatePathBuilder(FillRule aFillRule) const
TemporaryRef<GradientStops>
DrawTargetD2D::CreateGradientStops(GradientStop *rawStops, uint32_t aNumStops) const
{
vector<D2D1_GRADIENT_STOP> stops(aNumStops);
D2D1_GRADIENT_STOP *stops = new D2D1_GRADIENT_STOP[aNumStops];
for (uint32_t i = 0; i < aNumStops; i++) {
stops[i].position = rawStops[i].offset;
@ -1030,7 +1030,7 @@ DrawTargetD2D::CreateGradientStops(GradientStop *rawStops, uint32_t aNumStops) c
RefPtr<ID2D1GradientStopCollection> stopCollection;
HRESULT hr = mRT->CreateGradientStopCollection(&stops.front(), aNumStops, byRef(stopCollection));
HRESULT hr = mRT->CreateGradientStopCollection(stops, aNumStops, byRef(stopCollection));
if (FAILED(hr)) {
gfxWarning() << "Failed to create GradientStopCollection. Code: " << hr;