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

Side by Side Diff: Source/core/svg/SVGElement.cpp

Issue 22482004: Add support for the object-fit CSS property. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase for landing Created 7 years, 4 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 unified diff | Download patch
« no previous file with comments | « Source/core/scripts/make_runtime_features.py ('k') | Source/core/svg/svgattrs.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org>
3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com>
6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 mapAttributeToCSSProperty(propertyNameToIdMap, kerningAttr); 401 mapAttributeToCSSProperty(propertyNameToIdMap, kerningAttr);
402 mapAttributeToCSSProperty(propertyNameToIdMap, letter_spacingAttr); 402 mapAttributeToCSSProperty(propertyNameToIdMap, letter_spacingAttr);
403 mapAttributeToCSSProperty(propertyNameToIdMap, lighting_colorAttr); 403 mapAttributeToCSSProperty(propertyNameToIdMap, lighting_colorAttr);
404 mapAttributeToCSSProperty(propertyNameToIdMap, marker_endAttr); 404 mapAttributeToCSSProperty(propertyNameToIdMap, marker_endAttr);
405 mapAttributeToCSSProperty(propertyNameToIdMap, marker_midAttr); 405 mapAttributeToCSSProperty(propertyNameToIdMap, marker_midAttr);
406 mapAttributeToCSSProperty(propertyNameToIdMap, marker_startAttr); 406 mapAttributeToCSSProperty(propertyNameToIdMap, marker_startAttr);
407 mapAttributeToCSSProperty(propertyNameToIdMap, maskAttr); 407 mapAttributeToCSSProperty(propertyNameToIdMap, maskAttr);
408 mapAttributeToCSSProperty(propertyNameToIdMap, mask_typeAttr); 408 mapAttributeToCSSProperty(propertyNameToIdMap, mask_typeAttr);
409 mapAttributeToCSSProperty(propertyNameToIdMap, opacityAttr); 409 mapAttributeToCSSProperty(propertyNameToIdMap, opacityAttr);
410 mapAttributeToCSSProperty(propertyNameToIdMap, overflowAttr); 410 mapAttributeToCSSProperty(propertyNameToIdMap, overflowAttr);
411 mapAttributeToCSSProperty(propertyNameToIdMap, paint_orderAttr);
411 mapAttributeToCSSProperty(propertyNameToIdMap, pointer_eventsAttr); 412 mapAttributeToCSSProperty(propertyNameToIdMap, pointer_eventsAttr);
412 mapAttributeToCSSProperty(propertyNameToIdMap, shape_renderingAttr); 413 mapAttributeToCSSProperty(propertyNameToIdMap, shape_renderingAttr);
413 mapAttributeToCSSProperty(propertyNameToIdMap, stop_colorAttr); 414 mapAttributeToCSSProperty(propertyNameToIdMap, stop_colorAttr);
414 mapAttributeToCSSProperty(propertyNameToIdMap, stop_opacityAttr); 415 mapAttributeToCSSProperty(propertyNameToIdMap, stop_opacityAttr);
415 mapAttributeToCSSProperty(propertyNameToIdMap, strokeAttr); 416 mapAttributeToCSSProperty(propertyNameToIdMap, strokeAttr);
416 mapAttributeToCSSProperty(propertyNameToIdMap, stroke_dasharrayAttr); 417 mapAttributeToCSSProperty(propertyNameToIdMap, stroke_dasharrayAttr);
417 mapAttributeToCSSProperty(propertyNameToIdMap, stroke_dashoffsetAttr); 418 mapAttributeToCSSProperty(propertyNameToIdMap, stroke_dashoffsetAttr);
418 mapAttributeToCSSProperty(propertyNameToIdMap, stroke_linecapAttr); 419 mapAttributeToCSSProperty(propertyNameToIdMap, stroke_linecapAttr);
419 mapAttributeToCSSProperty(propertyNameToIdMap, stroke_linejoinAttr); 420 mapAttributeToCSSProperty(propertyNameToIdMap, stroke_linejoinAttr);
420 mapAttributeToCSSProperty(propertyNameToIdMap, stroke_miterlimitAttr); 421 mapAttributeToCSSProperty(propertyNameToIdMap, stroke_miterlimitAttr);
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 s_cssPropertyMap.set(kerningAttr, AnimatedLength); 665 s_cssPropertyMap.set(kerningAttr, AnimatedLength);
665 s_cssPropertyMap.set(letter_spacingAttr, AnimatedLength); 666 s_cssPropertyMap.set(letter_spacingAttr, AnimatedLength);
666 s_cssPropertyMap.set(lighting_colorAttr, AnimatedColor); 667 s_cssPropertyMap.set(lighting_colorAttr, AnimatedColor);
667 s_cssPropertyMap.set(marker_endAttr, AnimatedString); 668 s_cssPropertyMap.set(marker_endAttr, AnimatedString);
668 s_cssPropertyMap.set(marker_midAttr, AnimatedString); 669 s_cssPropertyMap.set(marker_midAttr, AnimatedString);
669 s_cssPropertyMap.set(marker_startAttr, AnimatedString); 670 s_cssPropertyMap.set(marker_startAttr, AnimatedString);
670 s_cssPropertyMap.set(maskAttr, AnimatedString); 671 s_cssPropertyMap.set(maskAttr, AnimatedString);
671 s_cssPropertyMap.set(mask_typeAttr, AnimatedString); 672 s_cssPropertyMap.set(mask_typeAttr, AnimatedString);
672 s_cssPropertyMap.set(opacityAttr, AnimatedNumber); 673 s_cssPropertyMap.set(opacityAttr, AnimatedNumber);
673 s_cssPropertyMap.set(overflowAttr, AnimatedString); 674 s_cssPropertyMap.set(overflowAttr, AnimatedString);
675 s_cssPropertyMap.set(paint_orderAttr, AnimatedString);
674 s_cssPropertyMap.set(pointer_eventsAttr, AnimatedString); 676 s_cssPropertyMap.set(pointer_eventsAttr, AnimatedString);
675 s_cssPropertyMap.set(shape_renderingAttr, AnimatedString); 677 s_cssPropertyMap.set(shape_renderingAttr, AnimatedString);
676 s_cssPropertyMap.set(stop_colorAttr, AnimatedColor); 678 s_cssPropertyMap.set(stop_colorAttr, AnimatedColor);
677 s_cssPropertyMap.set(stop_opacityAttr, AnimatedNumber); 679 s_cssPropertyMap.set(stop_opacityAttr, AnimatedNumber);
678 s_cssPropertyMap.set(strokeAttr, AnimatedColor); 680 s_cssPropertyMap.set(strokeAttr, AnimatedColor);
679 s_cssPropertyMap.set(stroke_dasharrayAttr, AnimatedLengthList); 681 s_cssPropertyMap.set(stroke_dasharrayAttr, AnimatedLengthList);
680 s_cssPropertyMap.set(stroke_dashoffsetAttr, AnimatedLength); 682 s_cssPropertyMap.set(stroke_dashoffsetAttr, AnimatedLength);
681 s_cssPropertyMap.set(stroke_linecapAttr, AnimatedString); 683 s_cssPropertyMap.set(stroke_linecapAttr, AnimatedString);
682 s_cssPropertyMap.set(stroke_linejoinAttr, AnimatedString); 684 s_cssPropertyMap.set(stroke_linejoinAttr, AnimatedString);
683 s_cssPropertyMap.set(stroke_miterlimitAttr, AnimatedNumber); 685 s_cssPropertyMap.set(stroke_miterlimitAttr, AnimatedNumber);
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 } 1144 }
1143 1145
1144 if (name == classAttr) 1146 if (name == classAttr)
1145 return true; 1147 return true;
1146 1148
1147 return animatableAttributes.contains(name); 1149 return animatableAttributes.contains(name);
1148 } 1150 }
1149 #endif 1151 #endif
1150 1152
1151 } 1153 }
OLDNEW
« no previous file with comments | « Source/core/scripts/make_runtime_features.py ('k') | Source/core/svg/svgattrs.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698