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

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

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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
« no previous file with comments | « Source/core/html/HTMLTextFormControlElement.cpp ('k') | Source/core/html/ImageDocument.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLVideoElement.cpp
diff --git a/Source/core/html/HTMLVideoElement.cpp b/Source/core/html/HTMLVideoElement.cpp
index 426919462c4164b09b463143640a17074b6329b3..cfae109f4980a33059759aae2f8a6b64006b6625 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()
« no previous file with comments | « Source/core/html/HTMLTextFormControlElement.cpp ('k') | Source/core/html/ImageDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698