| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> | 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. |
| 4 * All rights reserved. | 4 * All rights reserved. |
| 5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
| 7 * Copyright (C) 2011 Sencha, Inc. All rights reserved. | 7 * Copyright (C) 2011 Sencha, Inc. All rights reserved. |
| 8 * Copyright (C) 2015 Google Inc. All rights reserved. | 8 * Copyright (C) 2015 Google Inc. All rights reserved. |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 2256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2267 if (style.getTextSizeAdjust().isAuto()) | 2267 if (style.getTextSizeAdjust().isAuto()) |
| 2268 return CSSIdentifierValue::create(CSSValueAuto); | 2268 return CSSIdentifierValue::create(CSSValueAuto); |
| 2269 return CSSPrimitiveValue::create( | 2269 return CSSPrimitiveValue::create( |
| 2270 style.getTextSizeAdjust().multiplier() * 100, | 2270 style.getTextSizeAdjust().multiplier() * 100, |
| 2271 CSSPrimitiveValue::UnitType::Percentage); | 2271 CSSPrimitiveValue::UnitType::Percentage); |
| 2272 case CSSPropertyCursor: { | 2272 case CSSPropertyCursor: { |
| 2273 CSSValueList* list = nullptr; | 2273 CSSValueList* list = nullptr; |
| 2274 CursorList* cursors = style.cursors(); | 2274 CursorList* cursors = style.cursors(); |
| 2275 if (cursors && cursors->size() > 0) { | 2275 if (cursors && cursors->size() > 0) { |
| 2276 list = CSSValueList::createCommaSeparated(); | 2276 list = CSSValueList::createCommaSeparated(); |
| 2277 for (unsigned i = 0; i < cursors->size(); ++i) { | 2277 for (const CursorData& cursor : *cursors) { |
| 2278 if (StyleImage* image = cursors->at(i).image()) | 2278 if (StyleImage* image = cursor.image()) { |
| 2279 list->append(*CSSCursorImageValue::create( | 2279 list->append(*CSSCursorImageValue::create( |
| 2280 image->computedCSSValue(), cursors->at(i).hotSpotSpecified(), | 2280 *image->computedCSSValue(), cursor.hotSpotSpecified(), |
| 2281 cursors->at(i).hotSpot())); | 2281 cursor.hotSpot())); |
| 2282 } |
| 2282 } | 2283 } |
| 2283 } | 2284 } |
| 2284 CSSValue* value = CSSIdentifierValue::create(style.cursor()); | 2285 CSSValue* value = CSSIdentifierValue::create(style.cursor()); |
| 2285 if (list) { | 2286 if (list) { |
| 2286 list->append(*value); | 2287 list->append(*value); |
| 2287 return list; | 2288 return list; |
| 2288 } | 2289 } |
| 2289 return value; | 2290 return value; |
| 2290 } | 2291 } |
| 2291 case CSSPropertyDirection: | 2292 case CSSPropertyDirection: |
| (...skipping 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3644 case CSSPropertyAll: | 3645 case CSSPropertyAll: |
| 3645 return nullptr; | 3646 return nullptr; |
| 3646 default: | 3647 default: |
| 3647 break; | 3648 break; |
| 3648 } | 3649 } |
| 3649 ASSERT_NOT_REACHED(); | 3650 ASSERT_NOT_REACHED(); |
| 3650 return nullptr; | 3651 return nullptr; |
| 3651 } | 3652 } |
| 3652 | 3653 |
| 3653 } // namespace blink | 3654 } // namespace blink |
| OLD | NEW |