| Index: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
|
| index 9d2600b8c18f6e8fe81c3b08743667ad1b5e65e2..481d89a384d8c58d7b2c0863706d7ff92be688d1 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
|
| @@ -864,10 +864,10 @@ bool DrawingBuffer::paintRenderingResultsToImageData(int& width, int& height, So
|
| width = size().width();
|
| height = size().height();
|
|
|
| - Checked<int, RecordOverflow> dataSize = 4;
|
| + WTF::CheckedNumeric<int> dataSize = 4;
|
| dataSize *= width;
|
| dataSize *= height;
|
| - if (dataSize.hasOverflowed())
|
| + if (!dataSize.IsValid())
|
| return false;
|
|
|
| WTF::ArrayBufferContents pixels(width * height, 4, WTF::ArrayBufferContents::NotShared, WTF::ArrayBufferContents::DontInitialize);
|
|
|