Index: Source/core/rendering/RenderLayer.cpp |
diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp |
index 08567f84920bea23eeff9ca918aaefc2acbd1594..f3428756d5a3ac0371454523fa238e1277b1515a 100644 |
--- a/Source/core/rendering/RenderLayer.cpp |
+++ b/Source/core/rendering/RenderLayer.cpp |
@@ -3983,9 +3983,11 @@ void RenderLayer::computeSelfHitTestRects(LayerHitTestRects& rects) const |
rects.set(this, rect); |
if (const RenderLayer* parentLayer = parent()) { |
LayerHitTestRects::iterator iter = rects.find(parentLayer); |
- if (iter == rects.end()) |
- iter = rects.add(parentLayer, Vector<LayoutRect>()).iterator; |
- iter->value.append(boundingBox(parentLayer)); |
+ if (iter == rects.end()) { |
+ rects.add(parentLayer, Vector<LayoutRect>()).storedValue->value.append(boundingBox(parentLayer)); |
+ } else { |
+ iter->value.append(boundingBox(parentLayer)); |
+ } |
} |
} else { |
rect.append(localBoundingBox()); |