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

Unified Diff: third_party/WebKit/Source/core/style/StyleFetchedImageSet.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/StyleFetchedImageSet.cpp
diff --git a/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp b/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp
index 07564b7b93796ee86a2353f94d7f2727dd8e992b..bab09b1cf7c5a4fd409f6fc7f555be655c01de80 100644
--- a/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp
@@ -99,14 +99,9 @@ LayoutSize StyleFetchedImageSet::imageSize(const LayoutObject* layoutObject, flo
return scaledImageSize;
}
-bool StyleFetchedImageSet::imageHasRelativeWidth() const
+bool StyleFetchedImageSet::imageHasRelativeSize() const
{
- return m_bestFitImage->imageHasRelativeWidth();
-}
-
-bool StyleFetchedImageSet::imageHasRelativeHeight() const
-{
- return m_bestFitImage->imageHasRelativeHeight();
+ return m_bestFitImage->imageHasRelativeSize();
}
void StyleFetchedImageSet::computeIntrinsicDimensions(const LayoutObject*, Length& intrinsicWidth, Length& intrinsicHeight, FloatSize& intrinsicRatio)

Powered by Google App Engine
This is Rietveld 408576698