Index: third_party/WebKit/Source/core/layout/LayoutImageResource.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutImageResource.cpp b/third_party/WebKit/Source/core/layout/LayoutImageResource.cpp |
index ed4aab39721a1802cc29f2a7bc9ad6ca7142784e..9ce336546d8a8d1bed533ba7ed3f88a4393c79a2 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutImageResource.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutImageResource.cpp |
@@ -36,7 +36,6 @@ namespace blink { |
LayoutImageResource::LayoutImageResource() |
: m_layoutObject(nullptr) |
, m_cachedImage(nullptr) |
- , m_client(nullptr) |
{ |
} |
@@ -44,12 +43,11 @@ LayoutImageResource::~LayoutImageResource() |
{ |
} |
-void LayoutImageResource::initialize(LayoutObject* layoutObject, ResourceClient* client) |
+void LayoutImageResource::initialize(LayoutObject* layoutObject) |
{ |
ASSERT(!m_layoutObject); |
ASSERT(layoutObject); |
m_layoutObject = layoutObject; |
- m_client = client; |
} |
void LayoutImageResource::shutdown() |
@@ -58,8 +56,6 @@ void LayoutImageResource::shutdown() |
if (!m_cachedImage) |
return; |
- if (m_client) |
- m_cachedImage->removeClient(m_client); |
m_cachedImage->removeObserver(m_layoutObject); |
} |
@@ -71,14 +67,10 @@ void LayoutImageResource::setImageResource(ImageResource* newImage) |
return; |
if (m_cachedImage) { |
- if (m_client) |
- m_cachedImage->removeClient(m_client); |
m_cachedImage->removeObserver(m_layoutObject); |
} |
m_cachedImage = newImage; |
if (m_cachedImage) { |
- if (m_client) |
- m_cachedImage->addClient(m_client); |
m_cachedImage->addObserver(m_layoutObject); |
if (m_cachedImage->errorOccurred()) |
m_layoutObject->imageChanged(m_cachedImage.get()); |