Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: Source/modules/imagebitmap/ImageBitmapFactories.cpp

Issue 403013002: Rename WebCore to blink in Modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "core/html/HTMLVideoElement.h" 42 #include "core/html/HTMLVideoElement.h"
43 #include "core/html/ImageData.h" 43 #include "core/html/ImageData.h"
44 #include "core/html/canvas/CanvasRenderingContext2D.h" 44 #include "core/html/canvas/CanvasRenderingContext2D.h"
45 #include "core/workers/WorkerGlobalScope.h" 45 #include "core/workers/WorkerGlobalScope.h"
46 #include "platform/SharedBuffer.h" 46 #include "platform/SharedBuffer.h"
47 #include "platform/graphics/BitmapImage.h" 47 #include "platform/graphics/BitmapImage.h"
48 #include "platform/graphics/ImageSource.h" 48 #include "platform/graphics/ImageSource.h"
49 #include "platform/graphics/skia/NativeImageSkia.h" 49 #include "platform/graphics/skia/NativeImageSkia.h"
50 #include <v8.h> 50 #include <v8.h>
51 51
52 namespace WebCore { 52 namespace blink {
53 53
54 static LayoutSize sizeFor(HTMLImageElement* image) 54 static LayoutSize sizeFor(HTMLImageElement* image)
55 { 55 {
56 if (ImageResource* cachedImage = image->cachedImage()) 56 if (ImageResource* cachedImage = image->cachedImage())
57 return cachedImage->imageSizeForRenderer(image->renderer(), 1.0f); // FI XME: Not sure about this. 57 return cachedImage->imageSizeForRenderer(image->renderer(), 1.0f); // FI XME: Not sure about this.
58 return IntSize(); 58 return IntSize();
59 } 59 }
60 60
61 static IntSize sizeFor(HTMLVideoElement* video) 61 static IntSize sizeFor(HTMLVideoElement* video)
62 { 62 {
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 void ImageBitmapFactories::ImageBitmapLoader::didFail(FileError::ErrorCode) 329 void ImageBitmapFactories::ImageBitmapLoader::didFail(FileError::ErrorCode)
330 { 330 {
331 rejectPromise(); 331 rejectPromise();
332 } 332 }
333 333
334 void ImageBitmapFactories::ImageBitmapLoader::trace(Visitor* visitor) 334 void ImageBitmapFactories::ImageBitmapLoader::trace(Visitor* visitor)
335 { 335 {
336 visitor->trace(m_factory); 336 visitor->trace(m_factory);
337 } 337 }
338 338
339 } // namespace WebCore 339 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/imagebitmap/ImageBitmapFactories.h ('k') | Source/modules/indexeddb/DOMWindowIndexedDatabase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698