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

Unified Diff: third_party/WebKit/Source/core/style/StyleGeneratedImage.h

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/StyleGeneratedImage.h
diff --git a/third_party/WebKit/Source/core/style/StyleGeneratedImage.h b/third_party/WebKit/Source/core/style/StyleGeneratedImage.h
index 07bd5e2f6f68ab508c5865d23e11c7adde7f9cc1..414532c67cf29cb8a2c7ed7d380c91c1ec8570fc 100644
--- a/third_party/WebKit/Source/core/style/StyleGeneratedImage.h
+++ b/third_party/WebKit/Source/core/style/StyleGeneratedImage.h
@@ -45,8 +45,7 @@ public:
PassRefPtrWillBeRawPtr<CSSValue> computedCSSValue() const override;
LayoutSize imageSize(const LayoutObject*, float multiplier) const override;
- bool imageHasRelativeWidth() const override { return !m_fixedSize; }
- bool imageHasRelativeHeight() const override { return !m_fixedSize; }
+ bool imageHasRelativeSize() const override { return !m_fixedSize; }
void computeIntrinsicDimensions(const LayoutObject*, Length& intrinsicWidth, Length& intrinsicHeight, FloatSize& intrinsicRatio) override;
bool usesImageContainerSize() const override { return !m_fixedSize; }
void addClient(LayoutObject*) override;
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleFetchedImageSet.cpp ('k') | third_party/WebKit/Source/core/style/StyleImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698