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

Unified Diff: Source/core/page/PageSerializer.cpp

Issue 1238943004: CSSValue Immediates: Replace CSSValue usage with const references (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cssvalue_patch_1
Patch Set: Rebase Created 5 years, 5 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/page/PageSerializer.h ('k') | Source/modules/canvas2d/CanvasRenderingContext2DState.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/PageSerializer.cpp
diff --git a/Source/core/page/PageSerializer.cpp b/Source/core/page/PageSerializer.cpp
index 96cf7eeb3edea9935bcf8bfcac2c007e08e4c950..0ba2049bb320a0cb52a6db144312b3ed53ba4da4 100644
--- a/Source/core/page/PageSerializer.cpp
+++ b/Source/core/page/PageSerializer.cpp
@@ -521,12 +521,12 @@ void PageSerializer::retrieveResourcesForProperties(const StylePropertySet* styl
// image properties there might be.
unsigned propertyCount = styleDeclaration->propertyCount();
for (unsigned i = 0; i < propertyCount; ++i) {
- CSSValue cssValue = styleDeclaration->propertyAt(i).value();
+ const CSSValue& cssValue = styleDeclaration->propertyAt(i).value();
retrieveResourcesForCSSValue(cssValue, document);
}
}
-void PageSerializer::retrieveResourcesForCSSValue(CSSValue cssValue, Document& document)
+void PageSerializer::retrieveResourcesForCSSValue(const CSSValue& cssValue, Document& document)
{
if (cssValue.isImageValue()) {
CSSImageValue& imageValue = toCSSImageValue(cssValue);
« no previous file with comments | « Source/core/page/PageSerializer.h ('k') | Source/modules/canvas2d/CanvasRenderingContext2DState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698