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

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

Issue 993713002: Fix template angle bracket syntax in CSS subdirs (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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
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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 { 147 {
148 RefPtrWillBeRawPtr<SVGLength> length = toAnimatableSVGLength(value)->toSVGLe ngth(); 148 RefPtrWillBeRawPtr<SVGLength> length = toAnimatableSVGLength(value)->toSVGLe ngth();
149 if (length->valueInSpecifiedUnits() < 0) 149 if (length->valueInSpecifiedUnits() < 0)
150 length->setValueInSpecifiedUnits(0); 150 length->setValueInSpecifiedUnits(0);
151 return length.release(); 151 return length.release();
152 } 152 }
153 153
154 template <CSSPropertyID property> 154 template <CSSPropertyID property>
155 void setOnFillLayers(FillLayer& fillLayers, const AnimatableValue* value, StyleR esolverState& state) 155 void setOnFillLayers(FillLayer& fillLayers, const AnimatableValue* value, StyleR esolverState& state)
156 { 156 {
157 const WillBeHeapVector<RefPtrWillBeMember<AnimatableValue> >& values = toAni matableRepeatable(value)->values(); 157 const WillBeHeapVector<RefPtrWillBeMember<AnimatableValue>>& values = toAnim atableRepeatable(value)->values();
158 ASSERT(!values.isEmpty()); 158 ASSERT(!values.isEmpty());
159 FillLayer* fillLayer = &fillLayers; 159 FillLayer* fillLayer = &fillLayers;
160 FillLayer* prev = 0; 160 FillLayer* prev = 0;
161 for (size_t i = 0; i < values.size(); ++i) { 161 for (size_t i = 0; i < values.size(); ++i) {
162 if (!fillLayer) 162 if (!fillLayer)
163 fillLayer = prev->ensureNext(); 163 fillLayer = prev->ensureNext();
164 const AnimatableValue* layerValue = values[i].get(); 164 const AnimatableValue* layerValue = values[i].get();
165 switch (property) { 165 switch (property) {
166 case CSSPropertyBackgroundImage: 166 case CSSPropertyBackgroundImage:
167 case CSSPropertyWebkitMaskImage: 167 case CSSPropertyWebkitMaskImage:
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 case CSSPropertyRy: 638 case CSSPropertyRy:
639 style->setRy(animatableValueToLength(value, state)); 639 style->setRy(animatableValueToLength(value, state));
640 return; 640 return;
641 641
642 default: 642 default:
643 ASSERT_NOT_REACHED(); 643 ASSERT_NOT_REACHED();
644 } 644 }
645 } 645 }
646 646
647 } // namespace blink 647 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/parser/CSSSelectorParser.cpp ('k') | Source/core/css/resolver/ElementStyleResources.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698