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

Side by Side Diff: third_party/WebKit/Source/web/tests/AnimationSimTest.cpp

Issue 2805733003: Rewrite references to "wtf/" to "platform/wtf/" in web. (Closed)
Patch Set: Created 3 years, 8 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 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/animation/ElementAnimation.h" 5 #include "core/animation/ElementAnimation.h"
6 #include "core/css/PropertyDescriptor.h" 6 #include "core/css/PropertyDescriptor.h"
7 #include "core/css/PropertyRegistration.h" 7 #include "core/css/PropertyRegistration.h"
8 #include "platform/wtf/CurrentTime.h"
8 #include "public/web/WebScriptSource.h" 9 #include "public/web/WebScriptSource.h"
9 #include "web/WebLocalFrameImpl.h" 10 #include "web/WebLocalFrameImpl.h"
10 #include "web/tests/sim/SimCompositor.h" 11 #include "web/tests/sim/SimCompositor.h"
11 #include "web/tests/sim/SimDisplayItemList.h" 12 #include "web/tests/sim/SimDisplayItemList.h"
12 #include "web/tests/sim/SimRequest.h" 13 #include "web/tests/sim/SimRequest.h"
13 #include "web/tests/sim/SimTest.h" 14 #include "web/tests/sim/SimTest.h"
14 #include "wtf/CurrentTime.h"
15 15
16 namespace blink { 16 namespace blink {
17 17
18 class AnimationSimTest : public SimTest {}; 18 class AnimationSimTest : public SimTest {};
19 19
20 TEST_F(AnimationSimTest, CustomPropertyBaseComputedStyle) { 20 TEST_F(AnimationSimTest, CustomPropertyBaseComputedStyle) {
21 // This is a regression test for bug where custom property animations failed 21 // This is a regression test for bug where custom property animations failed
22 // to disable the baseComputedStyle optimisation. When custom property 22 // to disable the baseComputedStyle optimisation. When custom property
23 // animations are in effect we lose the guarantee that the baseComputedStyle 23 // animations are in effect we lose the guarantee that the baseComputedStyle
24 // optimisation relies on where the non-animated style rules always produce 24 // optimisation relies on where the non-animated style rules always produce
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 *target, StringKeyframeEffectModel::create(keyframes), timing); 90 *target, StringKeyframeEffectModel::create(keyframes), timing);
91 91
92 // This (previously) would not clear the existing baseComputedStyle and would 92 // This (previously) would not clear the existing baseComputedStyle and would
93 // crash on the equality assertion in the exit frame when it tried to update 93 // crash on the equality assertion in the exit frame when it tried to update
94 // it. 94 // it.
95 compositor().beginFrame(1); 95 compositor().beginFrame(1);
96 compositor().beginFrame(1); 96 compositor().beginFrame(1);
97 } 97 }
98 98
99 } // namespace blink 99 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698