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

Side by Side Diff: Source/core/animation/ImageSliceStyleInterpolation.h

Issue 1276183004: Oilpan: Unship oilpan from temporary animation objects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef ImageSliceStyleInterpolation_h 5 #ifndef ImageSliceStyleInterpolation_h
6 #define ImageSliceStyleInterpolation_h 6 #define ImageSliceStyleInterpolation_h
7 7
8 #include "core/animation/StyleInterpolation.h" 8 #include "core/animation/StyleInterpolation.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class CSSBorderImageSliceValue; 12 class CSSBorderImageSliceValue;
13 13
14 class ImageSliceStyleInterpolation : public StyleInterpolation { 14 class ImageSliceStyleInterpolation : public StyleInterpolation {
15 public: 15 public:
16 static bool usesDefaultInterpolation(const CSSValue&, const CSSValue&); 16 static bool usesDefaultInterpolation(const CSSValue&, const CSSValue&);
17 static PassRefPtrWillBeRawPtr<ImageSliceStyleInterpolation> maybeCreate(cons t CSSValue&, const CSSValue&, CSSPropertyID); 17 static PassRefPtr<ImageSliceStyleInterpolation> maybeCreate(const CSSValue&, const CSSValue&, CSSPropertyID);
18 18
19 void apply(StyleResolverState&) const override; 19 void apply(StyleResolverState&) const override;
20 DECLARE_VIRTUAL_TRACE();
21 20
22 // Image slices can have either percentages or numbers: http://dev.w3.org/cs swg/css-backgrounds-3/#the-border-image-slice 21 // Image slices can have either percentages or numbers: http://dev.w3.org/cs swg/css-backgrounds-3/#the-border-image-slice
23 struct Metadata { 22 struct Metadata {
24 bool isPercentage; 23 bool isPercentage;
25 bool fill; 24 bool fill;
26 bool operator==(const Metadata& o) const { return isPercentage == o.isPe rcentage && fill == o.fill; } 25 bool operator==(const Metadata& o) const { return isPercentage == o.isPe rcentage && fill == o.fill; }
27 }; 26 };
28 27
29 private: 28 private:
30 ImageSliceStyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start , PassOwnPtrWillBeRawPtr<InterpolableValue> end, CSSPropertyID property, Metadat a metadata) 29 ImageSliceStyleInterpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr <InterpolableValue> end, CSSPropertyID property, Metadata metadata)
31 : StyleInterpolation(start, end, property) 30 : StyleInterpolation(start, end, property)
32 , m_metadata(metadata) 31 , m_metadata(metadata)
33 { } 32 { }
34 33
35 Metadata m_metadata; 34 Metadata m_metadata;
36 }; 35 };
37 36
38 } // namespace blink 37 } // namespace blink
39 38
40 #endif // ImageSliceStyleInterpolation_h 39 #endif // ImageSliceStyleInterpolation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698