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

Unified Diff: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp

Issue 2522443002: Remove SVGCursorElement (Closed)
Patch Set: Rebase Created 4 years 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
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());

Powered by Google App Engine
This is Rietveld 408576698