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

Issue 1406393006: Web Animations: Migrate SVG integer interpolation to interpolation types (Closed)

Created:
5 years, 1 month ago by dstockwell
Modified:
5 years, 1 month ago
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, chromium-reviews, krit, Eric Willigers, f(malita), fs, gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rjwright, rwlbuis, Stephen Chennney, shans
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Web Animations: Migrate SVG integer interpolation to interpolation types BUG=530436

Patch Set 1 #

Messages

Total messages: 11 (6 generated)
dstockwell
5 years, 1 month ago (2015-11-03 01:57:45 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1406393006/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1406393006/1
5 years, 1 month ago (2015-11-03 01:58:15 UTC) #4
alancutter (OOO until 2018)
lgtm
5 years, 1 month ago (2015-11-03 02:29:48 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1406393006/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1406393006/1
5 years, 1 month ago (2015-11-03 03:14:07 UTC) #8
commit-bot: I haz the power
5 years, 1 month ago (2015-11-03 04:12:57 UTC) #10
Failed to apply patch for
third_party/WebKit/Source/core/animation/StringKeyframe.cpp:
While running git apply --index -3 -p1;
  error: patch failed:
third_party/WebKit/Source/core/animation/StringKeyframe.cpp:38
  Falling back to three-way merge...
  Applied patch to 'third_party/WebKit/Source/core/animation/StringKeyframe.cpp'
with conflicts.
  U third_party/WebKit/Source/core/animation/StringKeyframe.cpp

Patch:       third_party/WebKit/Source/core/animation/StringKeyframe.cpp
Index: third_party/WebKit/Source/core/animation/StringKeyframe.cpp
diff --git a/third_party/WebKit/Source/core/animation/StringKeyframe.cpp
b/third_party/WebKit/Source/core/animation/StringKeyframe.cpp
index
2a57e08f88f821805632e576b629a01cfe44cb3a..89d3575080a56085a75162938bc4899c5958cb40
100644
--- a/third_party/WebKit/Source/core/animation/StringKeyframe.cpp
+++ b/third_party/WebKit/Source/core/animation/StringKeyframe.cpp
@@ -23,7 +23,6 @@
 #include "core/animation/FilterStyleInterpolation.h"
 #include "core/animation/ImageSliceStyleInterpolation.h"
 #include "core/animation/IntegerOptionalIntegerSVGInterpolation.h"
-#include "core/animation/IntegerSVGInterpolation.h"
 #include "core/animation/InterpolationType.h"
 #include "core/animation/InvalidatableInterpolation.h"
 #include "core/animation/LegacyStyleInterpolation.h"
@@ -38,6 +37,7 @@
 #include "core/animation/PathSVGInterpolation.h"
 #include "core/animation/PointSVGInterpolation.h"
 #include "core/animation/RectSVGInterpolation.h"
+#include "core/animation/SVGIntegerInterpolationType.h"
 #include "core/animation/SVGNumberInterpolationType.h"
 #include "core/animation/SVGStrokeDasharrayStyleInterpolation.h"
 #include "core/animation/SVGValueInterpolationType.h"
@@ -289,6 +289,10 @@ const Vector<const InterpolationType*>*
applicableTypesForProperty(PropertyHandl
             || attribute == SVGNames::surfaceScaleAttr
             || attribute == SVGNames::zAttr) {
             applicableTypes->append(new SVGNumberInterpolationType(attribute));
+        } else if (attribute == SVGNames::numOctavesAttr
+            || attribute == SVGNames::targetXAttr
+            || attribute == SVGNames::targetYAttr) {
+            applicableTypes->append(new
SVGIntegerInterpolationType(attribute));
         } else if (attribute == HTMLNames::classAttr
             || attribute == SVGNames::clipPathUnitsAttr
             || attribute == SVGNames::edgeModeAttr
@@ -558,8 +562,6 @@ PassRefPtr<Interpolation>
createSVGInterpolation(SVGPropertyBase* fromValue, SVG
         if (AngleSVGInterpolation::canCreateFrom(fromValue) &&
AngleSVGInterpolation::canCreateFrom(toValue))
             return AngleSVGInterpolation::create(fromValue, toValue,
attribute);
         break;
-    case AnimatedInteger:
-        return IntegerSVGInterpolation::create(fromValue, toValue, attribute);
     case AnimatedIntegerOptionalInteger: {
         int min = &attribute->attributeName() == &SVGNames::orderAttr ? 1 : 0;
         return IntegerOptionalIntegerSVGInterpolation::create(fromValue,
toValue, attribute, min);
@@ -587,6 +589,7 @@ PassRefPtr<Interpolation>
createSVGInterpolation(SVGPropertyBase* fromValue, SVG
         break;
 
     // Handled by SVGInterpolationTypes.
+    case AnimatedInteger:
     case AnimatedNumber:
         ASSERT_NOT_REACHED();
         // Fallthrough.

Powered by Google App Engine
This is Rietveld 408576698