diff options
Diffstat (limited to 'third_party/WebKit/Source/core/layout/LayoutImageResource.cpp')
-rw-r--r-- | third_party/WebKit/Source/core/layout/LayoutImageResource.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/third_party/WebKit/Source/core/layout/LayoutImageResource.cpp b/third_party/WebKit/Source/core/layout/LayoutImageResource.cpp index ed4aab3..9ce3365 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()); |