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

Side by Side Diff: Source/core/css/resolver/AnimatedStyleBuilder.cpp

Issue 956553004: Use Length for baselineShiftValue in SVGLayoutStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: A few more TEs. Created 5 years, 10 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 case CSSPropertyBackgroundPositionX: 286 case CSSPropertyBackgroundPositionX:
287 setOnFillLayers<CSSPropertyBackgroundPositionX>(style->accessBackgroundL ayers(), value, state); 287 setOnFillLayers<CSSPropertyBackgroundPositionX>(style->accessBackgroundL ayers(), value, state);
288 return; 288 return;
289 case CSSPropertyBackgroundPositionY: 289 case CSSPropertyBackgroundPositionY:
290 setOnFillLayers<CSSPropertyBackgroundPositionY>(style->accessBackgroundL ayers(), value, state); 290 setOnFillLayers<CSSPropertyBackgroundPositionY>(style->accessBackgroundL ayers(), value, state);
291 return; 291 return;
292 case CSSPropertyBackgroundSize: 292 case CSSPropertyBackgroundSize:
293 setOnFillLayers<CSSPropertyBackgroundSize>(style->accessBackgroundLayers (), value, state); 293 setOnFillLayers<CSSPropertyBackgroundSize>(style->accessBackgroundLayers (), value, state);
294 return; 294 return;
295 case CSSPropertyBaselineShift: 295 case CSSPropertyBaselineShift:
296 style->setBaselineShiftValue(toAnimatableSVGLength(value)->toSVGLength() ); 296 style->accessSVGStyle().setBaselineShift(BS_LENGTH);
297 style->accessSVGStyle().setBaselineShiftValue(animatableValueToLength(va lue, state));
297 return; 298 return;
298 case CSSPropertyBorderBottomColor: 299 case CSSPropertyBorderBottomColor:
299 style->setBorderBottomColor(toAnimatableColor(value)->color()); 300 style->setBorderBottomColor(toAnimatableColor(value)->color());
300 style->setVisitedLinkBorderBottomColor(toAnimatableColor(value)->visited LinkColor()); 301 style->setVisitedLinkBorderBottomColor(toAnimatableColor(value)->visited LinkColor());
301 return; 302 return;
302 case CSSPropertyBorderBottomLeftRadius: 303 case CSSPropertyBorderBottomLeftRadius:
303 style->setBorderBottomLeftRadius(animatableValueToLengthSize(value, stat e, ValueRangeNonNegative)); 304 style->setBorderBottomLeftRadius(animatableValueToLengthSize(value, stat e, ValueRangeNonNegative));
304 return; 305 return;
305 case CSSPropertyBorderBottomRightRadius: 306 case CSSPropertyBorderBottomRightRadius:
306 style->setBorderBottomRightRadius(animatableValueToLengthSize(value, sta te, ValueRangeNonNegative)); 307 style->setBorderBottomRightRadius(animatableValueToLengthSize(value, sta te, ValueRangeNonNegative));
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 case CSSPropertyY: 632 case CSSPropertyY:
632 style->setY(animatableValueToLength(value, state)); 633 style->setY(animatableValueToLength(value, state));
633 return; 634 return;
634 635
635 default: 636 default:
636 ASSERT_NOT_REACHED(); 637 ASSERT_NOT_REACHED();
637 } 638 }
638 } 639 }
639 640
640 } // namespace blink 641 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698