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

Unified Diff: third_party/WebKit/Source/core/frame/FrameSerializer.cpp

Issue 2036943002: Reduced the callers to the non-const version of CSSValueList::item() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_make_cssvaluelist_take_const_ref
Patch Set: Rebase Created 4 years, 6 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 | « third_party/WebKit/Source/core/frame/FrameSerializer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/FrameSerializer.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameSerializer.cpp b/third_party/WebKit/Source/core/frame/FrameSerializer.cpp
index c733c41dbab5ca6e6ddf689f8b241d17fcac2b23..25a3a4cd6f14f39fe5a3d4fe93e6e617465316d0 100644
--- a/third_party/WebKit/Source/core/frame/FrameSerializer.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameSerializer.cpp
@@ -438,10 +438,10 @@ void FrameSerializer::retrieveResourcesForProperties(const StylePropertySet* sty
}
}
-void FrameSerializer::retrieveResourcesForCSSValue(CSSValue* cssValue, Document& document)
+void FrameSerializer::retrieveResourcesForCSSValue(const CSSValue* cssValue, Document& document)
{
if (cssValue->isImageValue()) {
- CSSImageValue* imageValue = toCSSImageValue(cssValue);
+ const CSSImageValue* imageValue = toCSSImageValue(cssValue);
if (imageValue->isCachePending())
return;
StyleImage* styleImage = imageValue->cachedImage();
@@ -450,14 +450,14 @@ void FrameSerializer::retrieveResourcesForCSSValue(CSSValue* cssValue, Document&
addImageToResources(styleImage->cachedImage(), styleImage->cachedImage()->url());
} else if (cssValue->isFontFaceSrcValue()) {
- CSSFontFaceSrcValue* fontFaceSrcValue = toCSSFontFaceSrcValue(cssValue);
+ const CSSFontFaceSrcValue* fontFaceSrcValue = toCSSFontFaceSrcValue(cssValue);
if (fontFaceSrcValue->isLocal()) {
return;
}
addFontToResources(fontFaceSrcValue->fetch(&document));
} else if (cssValue->isValueList()) {
- CSSValueList* cssValueList = toCSSValueList(cssValue);
+ const CSSValueList* cssValueList = toCSSValueList(cssValue);
for (unsigned i = 0; i < cssValueList->length(); i++)
retrieveResourcesForCSSValue(cssValueList->item(i), document);
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameSerializer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698