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

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

Issue 462133002: Remove custom style building functions for 'clip'. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased. Created 6 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/css/CSSProperties.in ('k') | Source/core/css/resolver/StyleBuilderConverter.h » ('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) 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 return; 334 return;
335 case CSSPropertyBottom: 335 case CSSPropertyBottom:
336 style->setBottom(animatableValueToLength(value, state)); 336 style->setBottom(animatableValueToLength(value, state));
337 return; 337 return;
338 case CSSPropertyBoxShadow: 338 case CSSPropertyBoxShadow:
339 case CSSPropertyWebkitBoxShadow: 339 case CSSPropertyWebkitBoxShadow:
340 style->setBoxShadow(toAnimatableShadow(value)->shadowList()); 340 style->setBoxShadow(toAnimatableShadow(value)->shadowList());
341 return; 341 return;
342 case CSSPropertyClip: 342 case CSSPropertyClip:
343 style->setClip(animatableValueToLengthBox(value, state)); 343 style->setClip(animatableValueToLengthBox(value, state));
344 style->setHasClip(true);
345 return; 344 return;
346 case CSSPropertyColor: 345 case CSSPropertyColor:
347 style->setColor(toAnimatableColor(value)->color()); 346 style->setColor(toAnimatableColor(value)->color());
348 style->setVisitedLinkColor(toAnimatableColor(value)->visitedLinkColor()) ; 347 style->setVisitedLinkColor(toAnimatableColor(value)->visitedLinkColor()) ;
349 return; 348 return;
350 case CSSPropertyFillOpacity: 349 case CSSPropertyFillOpacity:
351 style->setFillOpacity(clampTo<float>(toAnimatableDouble(value)->toDouble (), 0, 1)); 350 style->setFillOpacity(clampTo<float>(toAnimatableDouble(value)->toDouble (), 0, 1));
352 return; 351 return;
353 case CSSPropertyFill: 352 case CSSPropertyFill:
354 { 353 {
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 return; 612 return;
614 case CSSPropertyZoom: 613 case CSSPropertyZoom:
615 style->setZoom(clampTo<float>(toAnimatableDouble(value)->toDouble(), std ::numeric_limits<float>::denorm_min())); 614 style->setZoom(clampTo<float>(toAnimatableDouble(value)->toDouble(), std ::numeric_limits<float>::denorm_min()));
616 return; 615 return;
617 default: 616 default:
618 ASSERT_NOT_REACHED(); 617 ASSERT_NOT_REACHED();
619 } 618 }
620 } 619 }
621 620
622 } // namespace blink 621 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/CSSProperties.in ('k') | Source/core/css/resolver/StyleBuilderConverter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698