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

Unified Diff: third_party/WebKit/Source/modules/imagebitmap/WindowImageBitmapFactories.cpp

Issue 1468023002: Rename imageSizeForLayoutObject() to imageSize() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bring back ps#3 and fix nit Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/imagebitmap/WindowImageBitmapFactories.cpp
diff --git a/third_party/WebKit/Source/modules/imagebitmap/WindowImageBitmapFactories.cpp b/third_party/WebKit/Source/modules/imagebitmap/WindowImageBitmapFactories.cpp
index 2d02ab5c44381840a71e2e00d80e144cb0477180..e8dd9fa057989226b29f40b988b48580fb7c67f5 100644
--- a/third_party/WebKit/Source/modules/imagebitmap/WindowImageBitmapFactories.cpp
+++ b/third_party/WebKit/Source/modules/imagebitmap/WindowImageBitmapFactories.cpp
@@ -42,6 +42,7 @@
#include "core/html/HTMLImageElement.h"
#include "core/html/HTMLVideoElement.h"
#include "core/html/ImageData.h"
+#include "core/layout/LayoutObject.h"
#include "core/workers/WorkerGlobalScope.h"
#include "modules/canvas2d/CanvasRenderingContext2D.h"
#include "platform/SharedBuffer.h"
@@ -55,7 +56,7 @@ namespace blink {
static LayoutSize sizeFor(HTMLImageElement* image)
{
if (ImageResource* cachedImage = image->cachedImage())
- return cachedImage->imageSizeForLayoutObject(image->layoutObject(), 1.0f); // FIXME: Not sure about this.
+ return cachedImage->imageSize(LayoutObject::shouldRespectImageOrientation(image->layoutObject()), 1.0f); // FIXME: Not sure about this.
return LayoutSize();
}
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698