| Index: Source/devtools/front_end/source_frame/ImageView.js
|
| diff --git a/Source/devtools/front_end/source_frame/ImageView.js b/Source/devtools/front_end/source_frame/ImageView.js
|
| index fb1e2ab38dd17e8434d5c06fbe82f8a1763895b5..dfb93533fd31495003192bcdd73476a507b12d19 100644
|
| --- a/Source/devtools/front_end/source_frame/ImageView.js
|
| +++ b/Source/devtools/front_end/source_frame/ImageView.js
|
| @@ -93,9 +93,13 @@ WebInspector.ImageView.prototype = {
|
| this._imagePreviewElement = imagePreviewElement;
|
| },
|
|
|
| + /**
|
| + * @param {?string} content
|
| + * @return {number}
|
| + */
|
| _base64ToSize: function(content)
|
| {
|
| - if (!content.length)
|
| + if (!content || !content.length)
|
| return 0;
|
| var size = (content.length || 0) * 3 / 4;
|
| if (content.length > 0 && content[content.length - 1] === "=")
|
|
|