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

Unified Diff: third_party/WebKit/Source/core/style/StyleFetchedImage.cpp

Issue 1634133003: Condense Image::hasRelative{Width,Height}() into one (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/style/StyleFetchedImage.cpp
diff --git a/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp b/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp
index 309c8742a78c6931f2b393fc1a0de859214c935b..688218d5e6ecbc7eea62b40664d49f0daf2a7e9c 100644
--- a/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp
@@ -95,14 +95,9 @@ LayoutSize StyleFetchedImage::imageSize(const LayoutObject* layoutObject, float
return m_image->imageSize(LayoutObject::shouldRespectImageOrientation(layoutObject), multiplier);
}
-bool StyleFetchedImage::imageHasRelativeWidth() const
+bool StyleFetchedImage::imageHasRelativeSize() const
{
- return m_image->imageHasRelativeWidth();
-}
-
-bool StyleFetchedImage::imageHasRelativeHeight() const
-{
- return m_image->imageHasRelativeHeight();
+ return m_image->imageHasRelativeSize();
}
void StyleFetchedImage::computeIntrinsicDimensions(const LayoutObject*, Length& intrinsicWidth, Length& intrinsicHeight, FloatSize& intrinsicRatio)
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleFetchedImage.h ('k') | third_party/WebKit/Source/core/style/StyleFetchedImageSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698