| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013, Google Inc. All rights reserved. | 2 * Copyright (c) 2013, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 #include "core/html/HTMLVideoElement.h" | 41 #include "core/html/HTMLVideoElement.h" |
| 42 #include "core/html/ImageData.h" | 42 #include "core/html/ImageData.h" |
| 43 #include "core/html/canvas/CanvasRenderingContext2D.h" | 43 #include "core/html/canvas/CanvasRenderingContext2D.h" |
| 44 #include "core/frame/DOMWindow.h" | 44 #include "core/frame/DOMWindow.h" |
| 45 #include "core/frame/ImageBitmap.h" | 45 #include "core/frame/ImageBitmap.h" |
| 46 #include "core/workers/WorkerGlobalScope.h" | 46 #include "core/workers/WorkerGlobalScope.h" |
| 47 #include "platform/SharedBuffer.h" | 47 #include "platform/SharedBuffer.h" |
| 48 #include "platform/graphics/BitmapImage.h" | 48 #include "platform/graphics/BitmapImage.h" |
| 49 #include "platform/graphics/ImageSource.h" | 49 #include "platform/graphics/ImageSource.h" |
| 50 #include "platform/graphics/skia/NativeImageSkia.h" | 50 #include "platform/graphics/skia/NativeImageSkia.h" |
| 51 #include <v8.h> |
| 51 | 52 |
| 52 namespace WebCore { | 53 namespace WebCore { |
| 53 | 54 |
| 54 static LayoutSize sizeFor(HTMLImageElement* image) | 55 static LayoutSize sizeFor(HTMLImageElement* image) |
| 55 { | 56 { |
| 56 if (ImageResource* cachedImage = image->cachedImage()) | 57 if (ImageResource* cachedImage = image->cachedImage()) |
| 57 return cachedImage->imageSizeForRenderer(image->renderer(), 1.0f); // FI
XME: Not sure about this. | 58 return cachedImage->imageSizeForRenderer(image->renderer(), 1.0f); // FI
XME: Not sure about this. |
| 58 return IntSize(); | 59 return IntSize(); |
| 59 } | 60 } |
| 60 | 61 |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 { | 335 { |
| 335 rejectPromise(); | 336 rejectPromise(); |
| 336 } | 337 } |
| 337 | 338 |
| 338 void ImageBitmapFactories::ImageBitmapLoader::trace(Visitor* visitor) | 339 void ImageBitmapFactories::ImageBitmapLoader::trace(Visitor* visitor) |
| 339 { | 340 { |
| 340 visitor->trace(m_factory); | 341 visitor->trace(m_factory); |
| 341 } | 342 } |
| 342 | 343 |
| 343 } // namespace WebCore | 344 } // namespace WebCore |
| OLD | NEW |