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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.h

Issue 2927123005: Deprecate step timing with position 'middle' (Closed)
Patch Set: Rebase Created 3 years, 6 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
4 * All rights reserved. 4 * All rights reserved.
5 * Copyright (C) 2012 Google Inc. All rights reserved. 5 * Copyright (C) 2012 Google Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 14 matching lines...) Expand all
25 25
26 #include "core/CSSPropertyNames.h" 26 #include "core/CSSPropertyNames.h"
27 #include "core/animation/Timing.h" 27 #include "core/animation/Timing.h"
28 #include "core/animation/css/CSSTransitionData.h" 28 #include "core/animation/css/CSSTransitionData.h"
29 #include "core/style/ComputedStyleConstants.h" 29 #include "core/style/ComputedStyleConstants.h"
30 #include "platform/animation/TimingFunction.h" 30 #include "platform/animation/TimingFunction.h"
31 #include "platform/wtf/Allocator.h" 31 #include "platform/wtf/Allocator.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class Document;
35 class FillLayer; 36 class FillLayer;
36 class CSSValue; 37 class CSSValue;
37 class StyleResolverState; 38 class StyleResolverState;
38 class NinePieceImage; 39 class NinePieceImage;
39 class BorderImageLengthBox; 40 class BorderImageLengthBox;
40 41
41 class CSSToStyleMap { 42 class CSSToStyleMap {
42 STATIC_ONLY(CSSToStyleMap); 43 STATIC_ONLY(CSSToStyleMap);
43 44
44 public: 45 public:
(...skipping 24 matching lines...) Expand all
69 70
70 static double MapAnimationDelay(const CSSValue&); 71 static double MapAnimationDelay(const CSSValue&);
71 static Timing::PlaybackDirection MapAnimationDirection(const CSSValue&); 72 static Timing::PlaybackDirection MapAnimationDirection(const CSSValue&);
72 static double MapAnimationDuration(const CSSValue&); 73 static double MapAnimationDuration(const CSSValue&);
73 static Timing::FillMode MapAnimationFillMode(const CSSValue&); 74 static Timing::FillMode MapAnimationFillMode(const CSSValue&);
74 static double MapAnimationIterationCount(const CSSValue&); 75 static double MapAnimationIterationCount(const CSSValue&);
75 static AtomicString MapAnimationName(const CSSValue&); 76 static AtomicString MapAnimationName(const CSSValue&);
76 static EAnimPlayState MapAnimationPlayState(const CSSValue&); 77 static EAnimPlayState MapAnimationPlayState(const CSSValue&);
77 static CSSTransitionData::TransitionProperty MapAnimationProperty( 78 static CSSTransitionData::TransitionProperty MapAnimationProperty(
78 const CSSValue&); 79 const CSSValue&);
80
81 // Pass a Document* if allow_step_middle is true so that the usage can be
82 // counted.
79 static PassRefPtr<TimingFunction> MapAnimationTimingFunction( 83 static PassRefPtr<TimingFunction> MapAnimationTimingFunction(
80 const CSSValue&, 84 const CSSValue&,
81 bool allow_step_middle = false); 85 bool allow_step_middle = false,
86 Document* = nullptr);
82 87
83 static void MapNinePieceImage(StyleResolverState&, 88 static void MapNinePieceImage(StyleResolverState&,
84 CSSPropertyID, 89 CSSPropertyID,
85 const CSSValue&, 90 const CSSValue&,
86 NinePieceImage&); 91 NinePieceImage&);
87 static void MapNinePieceImageSlice(StyleResolverState&, 92 static void MapNinePieceImageSlice(StyleResolverState&,
88 const CSSValue&, 93 const CSSValue&,
89 NinePieceImage&); 94 NinePieceImage&);
90 static BorderImageLengthBox MapNinePieceImageQuad(StyleResolverState&, 95 static BorderImageLengthBox MapNinePieceImageQuad(StyleResolverState&,
91 const CSSValue&); 96 const CSSValue&);
92 static void MapNinePieceImageRepeat(StyleResolverState&, 97 static void MapNinePieceImageRepeat(StyleResolverState&,
93 const CSSValue&, 98 const CSSValue&,
94 NinePieceImage&); 99 NinePieceImage&);
95 }; 100 };
96 101
97 } // namespace blink 102 } // namespace blink
98 103
99 #endif 104 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698