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

Unified Diff: Source/core/rendering/RenderBlock.cpp

Issue 381473002: Use reference for FillLayer if possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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/rendering/InlineFlowBox.cpp ('k') | Source/core/rendering/RenderBox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderBlock.cpp
diff --git a/Source/core/rendering/RenderBlock.cpp b/Source/core/rendering/RenderBlock.cpp
index 818818c1e92571dfd20459c960259dc478f6b9a3..009d4f55c38c716474ecf532a93e351b05d0df05 100644
--- a/Source/core/rendering/RenderBlock.cpp
+++ b/Source/core/rendering/RenderBlock.cpp
@@ -192,11 +192,10 @@ static void appendImageIfNotNull(Vector<ImageResource*>& imageResources, const S
}
}
-static void appendLayers(Vector<ImageResource*>& images, const FillLayer* styleLayer)
+static void appendLayers(Vector<ImageResource*>& images, const FillLayer& styleLayer)
{
- for (const FillLayer* layer = styleLayer; layer; layer = layer->next()) {
+ for (const FillLayer* layer = &styleLayer; layer; layer = layer->next())
appendImageIfNotNull(images, layer->image());
- }
}
static void appendImagesFromStyle(Vector<ImageResource*>& images, RenderStyle& blockStyle)
« no previous file with comments | « Source/core/rendering/InlineFlowBox.cpp ('k') | Source/core/rendering/RenderBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698