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

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

Issue 1427943002: Wrap SVGImage for container during paint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use IntSize for SVGImageForContainer Created 5 years, 1 month 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 712528b1dfeecc2fda7485dc31de715b8b2fdfe1..07bd5e2f6f68ab508c5865d23e11c7adde7f9cc1 100644
--- a/third_party/WebKit/Source/core/style/StyleGeneratedImage.h
+++ b/third_party/WebKit/Source/core/style/StyleGeneratedImage.h
@@ -49,10 +49,9 @@ public:
bool imageHasRelativeHeight() const override { return !m_fixedSize; }
void computeIntrinsicDimensions(const LayoutObject*, Length& intrinsicWidth, Length& intrinsicHeight, FloatSize& intrinsicRatio) override;
bool usesImageContainerSize() const override { return !m_fixedSize; }
- void setContainerSizeForLayoutObject(const LayoutObject*, const IntSize& containerSize, float) override { m_containerSize = containerSize; }
void addClient(LayoutObject*) override;
void removeClient(LayoutObject*) override;
- PassRefPtr<Image> image(const LayoutObject*, const IntSize&) const override;
+ PassRefPtr<Image> image(const LayoutObject*, const IntSize&, float) const override;
bool knownToBeOpaque(const LayoutObject*) const override;
DECLARE_VIRTUAL_TRACE();
@@ -63,7 +62,6 @@ private:
// TODO(sashab): Replace this with <const CSSImageGeneratorValue> once RefPtrWillBeMember<>
// supports const types.
RefPtrWillBeMember<CSSImageGeneratorValue> m_imageGeneratorValue;
- IntSize m_containerSize;
bool m_fixedSize;
};

Powered by Google App Engine
This is Rietveld 408576698