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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutImage.cpp

Issue 2469873002: [ImageResource 4] Split ImageResource into Resource and Image parts (Closed)
Patch Set: style Created 4 years 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
Index: third_party/WebKit/Source/core/layout/LayoutImage.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutImage.cpp b/third_party/WebKit/Source/core/layout/LayoutImage.cpp
index 85d249923cf6e620d224bae7de8aba2874b26908..e2a9ce303df9df732444bc58bec9dcba84d91495 100644
--- a/third_party/WebKit/Source/core/layout/LayoutImage.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutImage.cpp
@@ -29,7 +29,7 @@
#include "core/layout/LayoutImage.h"
#include "core/HTMLNames.h"
-#include "core/fetch/ImageResource.h"
+#include "core/fetch/ImageResourceContent.h"
#include "core/frame/FrameView.h"
#include "core/frame/LocalFrame.h"
#include "core/frame/UseCounter.h"
@@ -178,7 +178,7 @@ void LayoutImage::invalidatePaintAndMarkForLayoutIfNeeded() {
contentChanged(ImageChanged);
}
-void LayoutImage::imageNotifyFinished(ImageResource* newImage) {
+void LayoutImage::imageNotifyFinished(ImageResourceContent* newImage) {
if (!m_imageResource)
return;
@@ -321,7 +321,7 @@ LayoutReplaced* LayoutImage::embeddedReplacedContent() const {
if (!m_imageResource)
return nullptr;
- ImageResource* cachedImage = m_imageResource->cachedImage();
+ ImageResourceContent* cachedImage = m_imageResource->cachedImage();
if (cachedImage && cachedImage->getImage() &&
cachedImage->getImage()->isSVGImage())
return toSVGImage(cachedImage->getImage())->embeddedReplacedContent();
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutImage.h ('k') | third_party/WebKit/Source/core/layout/LayoutImageResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698