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

Unified Diff: third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp

Issue 2352193004: Document* -> Document& for loadSubimages and friends. (Closed)
Patch Set: Added constness Created 4 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
Index: third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp b/third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp
index 96c212db6aa43f0a1c1dd1ad6eae1d05cb46cba7..4a09baced9992622eb309c1e33e6c1f46e059182 100644
--- a/third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSCrossfadeValue.cpp
@@ -60,7 +60,7 @@ static bool subimageKnownToBeOpaque(CSSValue* value, const LayoutObject& layoutO
return false;
}
-static ImageResource* cachedImageForCSSValue(CSSValue* value, Document* document)
+static ImageResource* cachedImageForCSSValue(CSSValue* value, const Document& document)
{
if (!value)
return nullptr;
@@ -86,7 +86,7 @@ static ImageResource* cachedImageForCSSValue(CSSValue* value, Document* document
static Image* renderableImageForCSSValue(CSSValue* value, const LayoutObject& layoutObject)
{
- ImageResource* cachedImage = cachedImageForCSSValue(value, &layoutObject.document());
+ ImageResource* cachedImage = cachedImageForCSSValue(value, layoutObject.document());
if (!cachedImage || cachedImage->errorOccurred() || cachedImage->getImage()->isNull())
return nullptr;
@@ -193,7 +193,7 @@ bool CSSCrossfadeValue::knownToBeOpaque(const LayoutObject& layoutObject) const
return subimageKnownToBeOpaque(m_fromValue.get(), layoutObject) && subimageKnownToBeOpaque(m_toValue.get(), layoutObject);
}
-void CSSCrossfadeValue::loadSubimages(Document* document)
+void CSSCrossfadeValue::loadSubimages(const Document& document)
{
ImageResource* oldCachedFromImage = m_cachedFromImage;
ImageResource* oldCachedToImage = m_cachedToImage;
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCrossfadeValue.h ('k') | third_party/WebKit/Source/core/css/CSSCursorImageValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698