Index: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
index acfd912694e90756d1dde3846be5c4622f80fb32..a3178b63a3d4268ce3a42b2ce514a918ff86b559 100644 |
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
@@ -2274,11 +2274,12 @@ const CSSValue* ComputedStyleCSSValueMapping::get( |
CursorList* cursors = style.cursors(); |
if (cursors && cursors->size() > 0) { |
list = CSSValueList::createCommaSeparated(); |
- for (unsigned i = 0; i < cursors->size(); ++i) { |
- if (StyleImage* image = cursors->at(i).image()) |
+ for (const CursorData& cursor : *cursors) { |
+ if (StyleImage* image = cursor.image()) { |
list->append(*CSSCursorImageValue::create( |
- image->computedCSSValue(), cursors->at(i).hotSpotSpecified(), |
- cursors->at(i).hotSpot())); |
+ *image->computedCSSValue(), cursor.hotSpotSpecified(), |
+ cursor.hotSpot())); |
+ } |
} |
} |
CSSValue* value = CSSIdentifierValue::create(style.cursor()); |