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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutImage.cpp

Issue 1785123003: Rework embeddedContentBox into embeddedReplacedContent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
Index: third_party/WebKit/Source/core/layout/LayoutImage.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutImage.cpp b/third_party/WebKit/Source/core/layout/LayoutImage.cpp
index a68042e6f49a67a2fcd78441632eddcc8de28bf5..ddef1618392aff44282c63ec8007eede829a942c 100644
--- a/third_party/WebKit/Source/core/layout/LayoutImage.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutImage.cpp
@@ -309,17 +309,17 @@ bool LayoutImage::needsPreferredWidthsRecalculation() const
{
if (LayoutReplaced::needsPreferredWidthsRecalculation())
return true;
- return embeddedContentBox();
+ return embeddedReplacedContent();
}
-LayoutBox* LayoutImage::embeddedContentBox() const
+LayoutReplaced* LayoutImage::embeddedReplacedContent() const
{
if (!m_imageResource)
return nullptr;
ImageResource* cachedImage = m_imageResource->cachedImage();
if (cachedImage && cachedImage->getImage() && cachedImage->getImage()->isSVGImage())
- return toSVGImage(cachedImage->getImage())->embeddedContentBox();
+ return toSVGImage(cachedImage->getImage())->embeddedReplacedContent();
return nullptr;
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutImage.h ('k') | third_party/WebKit/Source/core/layout/LayoutPart.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698