diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-09-11 13:53:06 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-09-11 13:53:06 +0200 |
commit | 6195a2f1e2f5d693effe172ad1012b3c2eeac777 (patch) | |
tree | 5872d7f609e1e9b36c0ee8baede830afc876acb2 | |
parent | 09319b435f0e87cb9def1a695ec59e336de8ff51 (diff) | |
download | UXP-6195a2f1e2f5d693effe172ad1012b3c2eeac777.tar UXP-6195a2f1e2f5d693effe172ad1012b3c2eeac777.tar.gz UXP-6195a2f1e2f5d693effe172ad1012b3c2eeac777.tar.lz UXP-6195a2f1e2f5d693effe172ad1012b3c2eeac777.tar.xz UXP-6195a2f1e2f5d693effe172ad1012b3c2eeac777.zip |
Fix build bustage in cbfef7fcdb853916ff04015f6ee2d4b86f424a08
- imageDetails.format() needs a cast to SurfaceFormat
- style nit: wrap long lines.
-rw-r--r-- | dom/base/nsContentUtils.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dom/base/nsContentUtils.cpp b/dom/base/nsContentUtils.cpp index 49fe5143f..3696195dd 100644 --- a/dom/base/nsContentUtils.cpp +++ b/dom/base/nsContentUtils.cpp @@ -7609,7 +7609,8 @@ nsContentUtils::CalculateBufferSizeForImage(const uint32_t& aStride, return NS_ERROR_FAILURE; } *aMaxBufferSize = requiredBytes.value(); - *aUsedBufferSize = *aMaxBufferSize - aStride + (aImageSize.width * BytesPerPixel(aFormat)); + *aUsedBufferSize = *aMaxBufferSize - aStride + + (aImageSize.width * BytesPerPixel(aFormat)); return NS_OK; } @@ -7633,7 +7634,8 @@ nsContentUtils::DataTransferItemToImage(const IPCDataTransferItem& aItem, size_t maxBufLen = 0; nsresult rv = CalculateBufferSizeForImage(imageDetails.stride(), size, - imageDetails.format(), + static_cast<SurfaceFormat>( + imageDetails.format()), &maxBufLen, &imageBufLen); if (NS_FAILED(rv)) { |