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

Unified Diff: Source/core/style/StyleFetchedImageSet.cpp

Issue 1339183003: NOT FOR LANDING Experiment with allocating SVGImageForContainer on demand (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 3 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
« no previous file with comments | « Source/core/style/StyleFetchedImageSet.h ('k') | Source/core/style/StyleGeneratedImage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/style/StyleFetchedImageSet.cpp
diff --git a/Source/core/style/StyleFetchedImageSet.cpp b/Source/core/style/StyleFetchedImageSet.cpp
index b5732d8fda2289ea1e6afcfeb79089396fd710c4..0aad455dacbf59d42e95a8cc6f2bbfd70f064a0e 100644
--- a/Source/core/style/StyleFetchedImageSet.cpp
+++ b/Source/core/style/StyleFetchedImageSet.cpp
@@ -32,10 +32,11 @@
namespace blink {
-StyleFetchedImageSet::StyleFetchedImageSet(ImageResource* image, float imageScaleFactor, CSSImageSetValue* value)
+StyleFetchedImageSet::StyleFetchedImageSet(ImageResource* image, float imageScaleFactor, CSSImageSetValue* value, const KURL& urlWithFragment)
: m_bestFitImage(image)
, m_imageScaleFactor(imageScaleFactor)
, m_imageSetValue(value)
+ , m_urlWithFragment(urlWithFragment)
{
m_isImageResourceSet = true;
m_bestFitImage->addClient(this);
@@ -94,11 +95,6 @@ bool StyleFetchedImageSet::usesImageContainerSize() const
return m_bestFitImage->usesImageContainerSize();
}
-void StyleFetchedImageSet::setContainerSizeForLayoutObject(const LayoutObject* layoutObject, const IntSize& imageContainerSize, float imageContainerZoomFactor)
-{
- m_bestFitImage->setContainerSizeForLayoutObject(layoutObject, imageContainerSize, imageContainerZoomFactor);
-}
-
void StyleFetchedImageSet::addClient(LayoutObject* layoutObject)
{
m_bestFitImage->addClient(layoutObject);
« no previous file with comments | « Source/core/style/StyleFetchedImageSet.h ('k') | Source/core/style/StyleGeneratedImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698