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

Unified Diff: Source/core/html/HTMLVideoElement.cpp

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase to master Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLVideoElement.cpp
diff --git a/Source/core/html/HTMLVideoElement.cpp b/Source/core/html/HTMLVideoElement.cpp
index 7be168fc0720ff60ee0c0d718b98fae34ae16445..c958e8a690e62680c26528a4bc0bfbd6a044d256 100644
--- a/Source/core/html/HTMLVideoElement.cpp
+++ b/Source/core/html/HTMLVideoElement.cpp
@@ -90,8 +90,8 @@ void HTMLVideoElement::attach(const AttachContext& context)
if (!m_imageLoader)
m_imageLoader = HTMLImageLoader::create(this);
m_imageLoader->updateFromElement();
- if (renderer())
- toLayoutImage(renderer())->imageResource()->setImageResource(m_imageLoader->image());
+ if (layoutObject())
+ toLayoutImage(layoutObject())->imageResource()->setImageResource(m_imageLoader->image());
}
}
@@ -123,8 +123,8 @@ void HTMLVideoElement::parseAttribute(const QualifiedName& name, const AtomicStr
m_imageLoader = HTMLImageLoader::create(this);
m_imageLoader->updateFromElement(ImageLoader::UpdateIgnorePreviousError);
} else {
- if (renderer())
- toLayoutImage(renderer())->imageResource()->setImageResource(0);
+ if (layoutObject())
+ toLayoutImage(layoutObject())->imageResource()->setImageResource(0);
}
// Notify the player when the poster image URL changes.
if (webMediaPlayer())
@@ -188,8 +188,8 @@ void HTMLVideoElement::setDisplayMode(DisplayMode mode)
HTMLMediaElement::setDisplayMode(mode);
- if (renderer() && displayMode() != oldMode)
- renderer()->updateFromElement();
+ if (layoutObject() && displayMode() != oldMode)
+ layoutObject()->updateFromElement();
}
void HTMLVideoElement::updateDisplayState()

Powered by Google App Engine
This is Rietveld 408576698