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

Unified Diff: Source/core/rendering/compositing/CompositedLayerMapping.cpp

Issue 392403003: Remove unneeded break in CompositedLayerMapping::containingSquashedLayer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add braces 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/compositing/CompositedLayerMapping.cpp
diff --git a/Source/core/rendering/compositing/CompositedLayerMapping.cpp b/Source/core/rendering/compositing/CompositedLayerMapping.cpp
index 44a485b1893ff5b85fe5d9474fd63d164acc3e25..e09ec3f10a86928e5c1057744dd2f50f9ca6c066 100644
--- a/Source/core/rendering/compositing/CompositedLayerMapping.cpp
+++ b/Source/core/rendering/compositing/CompositedLayerMapping.cpp
@@ -1935,10 +1935,8 @@ void CompositedLayerMapping::setContentsNeedDisplayInRect(const LayoutRect& r)
const GraphicsLayerPaintInfo* CompositedLayerMapping::containingSquashedLayer(const RenderObject* renderObject, const Vector<GraphicsLayerPaintInfo>& layers)
{
for (size_t i = 0; i < layers.size(); ++i) {
- if (renderObject->isDescendantOf(layers[i].renderLayer->renderer())) {
+ if (renderObject->isDescendantOf(layers[i].renderLayer->renderer()))
return &layers[i];
- break;
- }
}
return 0;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698