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

Issue 25082007: Web Animations CSS: Split AnimatableNumber into AnimatableDouble and AnimatableLength (Closed)

Created:
7 years, 2 months ago by alancutter (OOO until 2018)
Modified:
7 years, 2 months ago
CC:
blink-reviews, shans, rjwright, alancutter (OOO until 2018), Mike Lawther (Google), dglazkov+blink, dstockwell, Timothy Loh, apavlov+blink_chromium.org, darktears, Steve Block, dino_apple.com, Eric Willigers
Visibility:
Public.

Description

Web Animations CSS: Split AnimatableNumber into AnimatableDouble and AnimatableLength AnimatableNumber currently does too many things. Splitting the class up will allow us to subclass number functionality and make the overall implementation cleaner. BUG=257591 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158686

Patch Set 1 #

Patch Set 2 : Rebase onto border radius change #

Patch Set 3 : Rebased onto virtual enum change #

Total comments: 10

Patch Set 4 : Added comment #

Total comments: 6

Patch Set 5 : Rebase and review changes #

Patch Set 6 : Rebased again #

Patch Set 7 : Review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -937 lines) Patch
A + Source/core/animation/AnimatableDouble.h View 1 2 3 4 1 chunk +20 lines, -17 lines 0 comments Download
A + Source/core/animation/AnimatableDouble.cpp View 1 chunk +24 lines, -10 lines 0 comments Download
A Source/core/animation/AnimatableDoubleTest.cpp View 1 2 3 4 1 chunk +85 lines, -0 lines 0 comments Download
A + Source/core/animation/AnimatableLength.h View 1 2 3 4 5 6 4 chunks +26 lines, -30 lines 0 comments Download
A + Source/core/animation/AnimatableLength.cpp View 1 2 3 4 5 6 9 chunks +22 lines, -57 lines 0 comments Download
A + Source/core/animation/AnimatableLengthTest.cpp View 1 2 8 chunks +40 lines, -93 lines 0 comments Download
D Source/core/animation/AnimatableNumber.h View 1 2 1 chunk +0 lines, -136 lines 0 comments Download
D Source/core/animation/AnimatableNumber.cpp View 1 chunk +0 lines, -251 lines 0 comments Download
D Source/core/animation/AnimatableNumberTest.cpp View 1 chunk +0 lines, -310 lines 0 comments Download
M Source/core/animation/AnimatableValue.h View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M Source/core/animation/KeyframeAnimationEffectTest.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M Source/core/animation/css/CSSAnimatableValueFactory.cpp View 1 2 3 4 5 6 4 chunks +10 lines, -10 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 2 chunks +6 lines, -3 lines 0 comments Download
M Source/core/css/resolver/AnimatedStyleBuilder.cpp View 1 2 3 4 5 8 chunks +11 lines, -10 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
alancutter (OOO until 2018)
7 years, 2 months ago (2013-09-30 06:45:54 UTC) #1
dstockwell
lgtm https://codereview.chromium.org/25082007/diff/8001/Source/core/animation/css/CSSAnimatableValueFactory.cpp File Source/core/animation/css/CSSAnimatableValueFactory.cpp (right): https://codereview.chromium.org/25082007/diff/8001/Source/core/animation/css/CSSAnimatableValueFactory.cpp#newcode83 Source/core/animation/css/CSSAnimatableValueFactory.cpp:83: case Relative: Need a comment about why we ...
7 years, 2 months ago (2013-09-30 22:01:57 UTC) #2
alancutter (OOO until 2018)
https://codereview.chromium.org/25082007/diff/8001/Source/core/animation/css/CSSAnimatableValueFactory.cpp File Source/core/animation/css/CSSAnimatableValueFactory.cpp (right): https://codereview.chromium.org/25082007/diff/8001/Source/core/animation/css/CSSAnimatableValueFactory.cpp#newcode83 Source/core/animation/css/CSSAnimatableValueFactory.cpp:83: case Relative: On 2013/09/30 22:01:58, dstockwell wrote: > Need ...
7 years, 2 months ago (2013-09-30 23:04:43 UTC) #3
Steve Block
lgtm https://codereview.chromium.org/25082007/diff/14001/Source/core/animation/AnimatableLength.h File Source/core/animation/AnimatableLength.h (right): https://codereview.chromium.org/25082007/diff/14001/Source/core/animation/AnimatableLength.h#newcode46 Source/core/animation/AnimatableLength.h:46: class AnimatableLength : public AnimatableValue { It would ...
7 years, 2 months ago (2013-09-30 23:21:30 UTC) #4
Timothy Loh
lgtm with tiny comments.. https://codereview.chromium.org/25082007/diff/8001/Source/core/animation/AnimatableDouble.cpp File Source/core/animation/AnimatableDouble.cpp (right): https://codereview.chromium.org/25082007/diff/8001/Source/core/animation/AnimatableDouble.cpp#newcode53 Source/core/animation/AnimatableDouble.cpp:53: // Optimization for adding with ...
7 years, 2 months ago (2013-09-30 23:27:59 UTC) #5
alancutter (OOO until 2018)
Thanks for the extra review. https://codereview.chromium.org/25082007/diff/8001/Source/core/animation/AnimatableDouble.cpp File Source/core/animation/AnimatableDouble.cpp (right): https://codereview.chromium.org/25082007/diff/8001/Source/core/animation/AnimatableDouble.cpp#newcode53 Source/core/animation/AnimatableDouble.cpp:53: // Optimization for adding ...
7 years, 2 months ago (2013-10-01 09:32:24 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/25082007/23001
7 years, 2 months ago (2013-10-01 09:33:25 UTC) #7
commit-bot: I haz the power
Failed to apply patch for Source/core/animation/AnimatableValue.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 2 months ago (2013-10-01 09:33:29 UTC) #8
alancutter (OOO until 2018)
https://codereview.chromium.org/25082007/diff/14001/Source/core/animation/AnimatableLength.h File Source/core/animation/AnimatableLength.h (right): https://codereview.chromium.org/25082007/diff/14001/Source/core/animation/AnimatableLength.h#newcode46 Source/core/animation/AnimatableLength.h:46: class AnimatableLength : public AnimatableValue { On 2013/09/30 23:21:31, ...
7 years, 2 months ago (2013-10-02 00:01:18 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alancutter@chromium.org/25082007/32001
7 years, 2 months ago (2013-10-02 00:02:01 UTC) #10
commit-bot: I haz the power
Change committed as 158686
7 years, 2 months ago (2013-10-02 04:57:10 UTC) #11
caseq
7 years, 2 months ago (2013-10-02 05:54:04 UTC) #12
Message was sent while issue was closed.
On 2013/10/02 04:57:10, I haz the power (commit-bot) wrote:
> Change committed as 158686

Reverted as 158688 for breaking build. Sample stdio:
http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux/builds/19...

FAILED: g++ -MMD -MF
obj/third_party/WebKit/Source/core/css/resolver/webcore_remaining.AnimatedStyleBuilder.o.d
-DANGLE_DX11 -D_FILE_OFFSET_BITS=64 -DCHROMIUM_BUILD
-DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_NSS=1 -DUSE_X11=1
-DENABLE_ONE_CLICK_SIGNIN -DGTK_DISABLE_SINGLE_INCLUDES=1 -DUSE_XI2_MT=2
-DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_PEPPER_CDMS
-DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DENABLE_NOTIFICATIONS
-DENABLE_GPU=1 -DENABLE_EGLIMAGE=1 -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1
-DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1
-DENABLE_THEMES=1 -DENABLE_BACKGROUND=1 -DENABLE_AUTOMATION=1
-DENABLE_GOOGLE_NOW=1 -DENABLE_FULL_PRINTING=1 -DENABLE_PRINTING=1
-DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1
-DENABLE_MANAGED_USERS=1 -DENABLE_MDNS=1 -DGL_GLEXT_PROTOTYPES
-DBLINK_IMPLEMENTATION=1 -DINSIDE_BLINK -DENABLE_CSS3_TEXT=0
-DENABLE_CSS_EXCLUSIONS=1 -DENABLE_CSS_REGIONS=1
-DENABLE_CUSTOM_SCHEME_HANDLER=0 -DENABLE_ENCRYPTED_MEDIA_V2=1
-DENABLE_SVG_FONTS=1 -DENABLE_TOUCH_ICON_LOADING=0
-DENABLE_GDI_FONTS_ON_WINDOWS=1 -DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1
-DENABLE_CALENDAR_PICKER=1 -DENABLE_INPUT_SPEECH=1
-DENABLE_INPUT_MULTIPLE_FIELDS_UI=1 -DENABLE_LEGACY_NOTIFICATIONS=1
-DENABLE_MEDIA_CAPTURE=0 -DENABLE_NAVIGATOR_CONTENT_UTILS=1
-DENABLE_ORIENTATION_EVENTS=0 -DENABLE_WEB_AUDIO=1 -DWTF_USE_WEBAUDIO_FFMPEG=1
-DENABLE_OPENTYPE_VERTICAL=1 -DENABLE_DEFAULT_RENDER_THEME=1
-DU_USING_ICU_NAMESPACE=0 -DU_STATIC_IMPLEMENTATION -DSK_ENABLE_INST_COUNT=0
-DSK_SUPPORT_GPU=1 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"'
-DSK_ENABLE_LEGACY_API_ALIASING=1 -DSK_USE_POSIX_THREADS
-DSK_DEFERRED_CANVAS_USES_FACTORIES=1 -DCHROME_PNG_WRITE_SUPPORT
-DPNG_USER_CONFIG -DLIBXML_STATIC -DLIBXSLT_STATIC -DNDEBUG -DNVALGRIND
-DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../third_party/khronos -I../../gpu -I../..
-I../../third_party/WebKit -I../../third_party/WebKit/Source -Igen/blink
-Igen/blink/bindings -I../../third_party/angle_dx11/include/GLSLANG
-I../../third_party/ffmpeg -I../../third_party/icu/source/i18n
-I../../third_party/icu/source/common -I../../third_party/skia/src/core
-I../../skia/config -I../../third_party/skia/include/config
-I../../third_party/skia/include/core -I../../third_party/skia/include/effects
-I../../third_party/skia/include/pdf -I../../third_party/skia/include/gpu
-I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops
-I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports
-I../../third_party/skia/include/utils -I../../skia/ext
-I../../third_party/iccjpeg -I../../third_party/libpng
-I../../third_party/libwebp -I../../third_party/libxml/linux/include
-I../../third_party/libxml/src/include -I../../third_party/libxslt
-I../../third_party/npapi -I../../third_party/npapi/bindings
-I../../third_party/ots/include -I../../third_party/qcms/src
-I../../third_party/sqlite -I../../third_party/zlib -I../../v8/include
-I../../third_party/libjpeg_turbo -fstack-protector --param=ssp-buffer-size=4
-pthread -fno-exceptions -fno-strict-aliasing -Wno-unused-parameter
-Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -pthread
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng12 -fno-strict-aliasing
-Wno-format -Wno-unused-result -O2 -fno-ident -fdata-sections
-ffunction-sections -fno-rtti -fno-threadsafe-statics
-fvisibility-inlines-hidden -Wno-c++0x-compat -Wno-deprecated  -c
../../third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp -o
obj/third_party/WebKit/Source/core/css/resolver/webcore_remaining.AnimatedStyleBuilder.o
../../third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp: In
static member function 'static void
WebCore::AnimatedStyleBuilder::applyProperty(WebCore::CSSPropertyID,
WebCore::StyleResolverState&, const WebCore::AnimatableValue*)':
../../third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp:182:72:
error: 'toAnimatableNumber' was not declared in this scope

Powered by Google App Engine
This is Rietveld 408576698