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

Unified Diff: Source/core/html/HTMLEmbedElement.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/HTMLElement.cpp ('k') | Source/core/html/HTMLFormControlElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLEmbedElement.cpp
diff --git a/Source/core/html/HTMLEmbedElement.cpp b/Source/core/html/HTMLEmbedElement.cpp
index 7cfb3a078cc034b27333aae5058da3ed3639b7c6..0863a55fa1a361cb7c2fc648c5dd82363ac26864 100644
--- a/Source/core/html/HTMLEmbedElement.cpp
+++ b/Source/core/html/HTMLEmbedElement.cpp
@@ -54,11 +54,11 @@ PassRefPtrWillBeRawPtr<HTMLEmbedElement> HTMLEmbedElement::create(Document& docu
static inline LayoutPart* findPartRenderer(const Node* n)
{
- if (!n->renderer())
+ if (!n->layoutObject())
n = Traversal<HTMLObjectElement>::firstAncestor(*n);
- if (n && n->renderer() && n->renderer()->isLayoutPart())
- return toLayoutPart(n->renderer());
+ if (n && n->layoutObject() && n->layoutObject()->isLayoutPart())
+ return toLayoutPart(n->layoutObject());
return nullptr;
}
@@ -94,13 +94,13 @@ void HTMLEmbedElement::parseAttribute(const QualifiedName& name, const AtomicStr
size_t pos = m_serviceType.find(";");
if (pos != kNotFound)
m_serviceType = m_serviceType.left(pos);
- if (!renderer())
+ if (!layoutObject())
requestPluginCreationWithoutRendererIfPossible();
} else if (name == codeAttr) {
m_url = stripLeadingAndTrailingHTMLSpaces(value);
} else if (name == srcAttr) {
m_url = stripLeadingAndTrailingHTMLSpaces(value);
- if (renderer() && isImageType()) {
+ if (layoutObject() && isImageType()) {
if (!m_imageLoader)
m_imageLoader = HTMLImageLoader::create(this);
m_imageLoader->updateFromElement(ImageLoader::UpdateIgnorePreviousError);
@@ -143,7 +143,7 @@ void HTMLEmbedElement::updateWidgetInternal()
RefPtrWillBeRawPtr<HTMLEmbedElement> protect(this); // Loading the plugin might remove us from the document.
// FIXME: Can we not have renderer here now that beforeload events are gone?
- if (!renderer())
+ if (!layoutObject())
return;
requestObject(m_url, m_serviceType, paramNames, paramValues);
@@ -162,9 +162,9 @@ bool HTMLEmbedElement::layoutObjectIsNeeded(const LayoutStyle& style)
// should be ignored and not get a renderer.
ContainerNode* p = parentNode();
if (isHTMLObjectElement(p)) {
- ASSERT(p->renderer());
+ ASSERT(p->layoutObject());
if (!toHTMLObjectElement(p)->useFallbackContent()) {
- ASSERT(!p->renderer()->isEmbeddedObject());
+ ASSERT(!p->layoutObject()->isEmbeddedObject());
return false;
}
}
« no previous file with comments | « Source/core/html/HTMLElement.cpp ('k') | Source/core/html/HTMLFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698