diff --git a/gfx/2d/Blur.cpp b/gfx/2d/Blur.cpp index 80c6714840c5..77f5ee3c5a51 100644 --- a/gfx/2d/Blur.cpp +++ b/gfx/2d/Blur.cpp @@ -385,11 +385,7 @@ AlphaBoxBlur::AlphaBoxBlur(const Rect& aRect, // in our blurring code. CheckedInt size = CheckedInt(mStride) * mRect.height + 3; if (size.isValid()) { - mData = new (nothrow) uint8_t[size.value()]; - if (!mData) { - return; - } - + mData = new uint8_t[size.value()]; memset(mData, 0, size.value()); } } diff --git a/gfx/2d/gfx2d.vcxproj b/gfx/2d/gfx2d.vcxproj index 4bb94599c908..dfd0a1f1bea2 100644 --- a/gfx/2d/gfx2d.vcxproj +++ b/gfx/2d/gfx2d.vcxproj @@ -12,18 +12,15 @@ Win32Proj - {49E973D7-53C9-3D66-BE58-52125FAE193D} StaticLibrary true - v110 StaticLibrary false - v110 diff --git a/gfx/2d/unittest/TestScaling.h b/gfx/2d/unittest/TestScaling.h index e9bd1a8e022e..928dda45c678 100644 --- a/gfx/2d/unittest/TestScaling.h +++ b/gfx/2d/unittest/TestScaling.h @@ -2,21 +2,21 @@ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#pragma once - -#include "TestBase.h" - -class TestScaling : public TestBase -{ -public: - TestScaling(); - - void BasicHalfScale(); - void DoubleHalfScale(); - void UnevenHalfScale(); - void OddStrideHalfScale(); - void VerticalHalfScale(); - void HorizontalHalfScale(); - void MixedHalfScale(); -}; + +#pragma once + +#include "TestBase.h" + +class TestScaling : public TestBase +{ +public: + TestScaling(); + + void BasicHalfScale(); + void DoubleHalfScale(); + void UnevenHalfScale(); + void OddStrideHalfScale(); + void VerticalHalfScale(); + void HorizontalHalfScale(); + void MixedHalfScale(); +}; diff --git a/gfx/2d/unittest/unittest.vcxproj b/gfx/2d/unittest/unittest.vcxproj index b88c5fc4ead6..7ddf9253039f 100644 --- a/gfx/2d/unittest/unittest.vcxproj +++ b/gfx/2d/unittest/unittest.vcxproj @@ -19,14 +19,12 @@ Application true MultiByte - v110 Application false true MultiByte - v110