Index: third_party/WebKit/Source/core/layout/shapes/Shape.cpp |
diff --git a/third_party/WebKit/Source/core/layout/shapes/Shape.cpp b/third_party/WebKit/Source/core/layout/shapes/Shape.cpp |
index 8407f1eed075f6be5c69c11975f33fa3c6b69dd0..bd49b75582d01a38c0640f8c9ab75c8a11fb4979 100644 |
--- a/third_party/WebKit/Source/core/layout/shapes/Shape.cpp |
+++ b/third_party/WebKit/Source/core/layout/shapes/Shape.cpp |
@@ -208,8 +208,8 @@ |
WTF::ArrayBufferContents contents; |
imageBuffer->getImageData(Unmultiplied, IntRect(IntPoint(), imageRect.size()), contents); |
- DOMArrayBuffer* arrayBuffer = DOMArrayBuffer::create(contents); |
- DOMUint8ClampedArray* pixelArray = DOMUint8ClampedArray::create(arrayBuffer, 0, arrayBuffer->byteLength()); |
+ RefPtr<DOMArrayBuffer> arrayBuffer = DOMArrayBuffer::create(contents); |
+ RefPtr<DOMUint8ClampedArray> pixelArray = DOMUint8ClampedArray::create(arrayBuffer, 0, arrayBuffer->byteLength()); |
unsigned pixelArrayOffset = 3; // Each pixel is four bytes: RGBA. |
uint8_t alphaPixelThreshold = threshold * 255; |