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

Unified Diff: Source/core/html/forms/ImageInputType.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/forms/FileInputType.cpp ('k') | Source/core/html/forms/NumberInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/ImageInputType.cpp
diff --git a/Source/core/html/forms/ImageInputType.cpp b/Source/core/html/forms/ImageInputType.cpp
index 51078e8a75d907a1c09137e2d2ddd57d4c213536..f48b0145e39c6c597365bcfba4de9c82e65700d2 100644
--- a/Source/core/html/forms/ImageInputType.cpp
+++ b/Source/core/html/forms/ImageInputType.cpp
@@ -142,7 +142,7 @@ void ImageInputType::altAttributeChanged()
void ImageInputType::srcAttributeChanged()
{
- if (!element().renderer())
+ if (!element().layoutObject())
return;
element().ensureImageLoader().updateFromElement(ImageLoader::UpdateIgnorePreviousError);
}
@@ -161,7 +161,7 @@ void ImageInputType::startResourceLoading()
HTMLImageLoader& imageLoader = element().ensureImageLoader();
imageLoader.updateFromElement();
- LayoutObject* renderer = element().renderer();
+ LayoutObject* renderer = element().layoutObject();
if (!renderer || !renderer->isLayoutImage())
return;
@@ -198,7 +198,7 @@ unsigned ImageInputType::height() const
{
RefPtrWillBeRawPtr<HTMLInputElement> element(this->element());
- if (!element->renderer()) {
+ if (!element->layoutObject()) {
// Check the attribute first for an explicit pixel value.
unsigned height;
if (parseHTMLNonNegativeInteger(element->fastGetAttribute(heightAttr), height))
@@ -207,7 +207,7 @@ unsigned ImageInputType::height() const
// If the image is available, use its height.
HTMLImageLoader* imageLoader = element->imageLoader();
if (imageLoader && imageLoader->image())
- return imageLoader->image()->imageSizeForRenderer(element->renderer(), 1).height();
+ return imageLoader->image()->imageSizeForRenderer(element->layoutObject(), 1).height();
}
element->document().updateLayout();
@@ -220,7 +220,7 @@ unsigned ImageInputType::width() const
{
RefPtrWillBeRawPtr<HTMLInputElement> element(this->element());
- if (!element->renderer()) {
+ if (!element->layoutObject()) {
// Check the attribute first for an explicit pixel value.
unsigned width;
if (parseHTMLNonNegativeInteger(element->fastGetAttribute(widthAttr), width))
@@ -229,7 +229,7 @@ unsigned ImageInputType::width() const
// If the image is available, use its width.
HTMLImageLoader* imageLoader = element->imageLoader();
if (imageLoader && imageLoader->image())
- return imageLoader->image()->imageSizeForRenderer(element->renderer(), 1).width();
+ return imageLoader->image()->imageSizeForRenderer(element->layoutObject(), 1).width();
}
element->document().updateLayout();
« no previous file with comments | « Source/core/html/forms/FileInputType.cpp ('k') | Source/core/html/forms/NumberInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698