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

Side by Side Diff: Source/core/css/CSSValueList.h

Issue 1069313002: Animation: FilterStyleInterpolation for animating filter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 12 matching lines...) Expand all
23 23
24 #include "core/css/CSSValue.h" 24 #include "core/css/CSSValue.h"
25 #include "wtf/PassRefPtr.h" 25 #include "wtf/PassRefPtr.h"
26 #include "wtf/Vector.h" 26 #include "wtf/Vector.h"
27 27
28 namespace blink { 28 namespace blink {
29 29
30 class CSSValueList : public CSSValue { 30 class CSSValueList : public CSSValue {
31 public: 31 public:
32 using iterator = WillBeHeapVector<RefPtrWillBeMember<CSSValue>, 4>::iterator ; 32 using iterator = WillBeHeapVector<RefPtrWillBeMember<CSSValue>, 4>::iterator ;
33 using const_iterator = WillBeHeapVector<RefPtrWillBeMember<CSSValue>, 4>::co nst_iterator;
Timothy Loh 2015/04/08 07:59:43 needs a rebase? I think we have these already
Eric Willigers 2015/04/08 08:30:40 Done.
33 34
34 static PassRefPtrWillBeRawPtr<CSSValueList> createCommaSeparated() 35 static PassRefPtrWillBeRawPtr<CSSValueList> createCommaSeparated()
35 { 36 {
36 return adoptRefWillBeNoop(new CSSValueList(CommaSeparator)); 37 return adoptRefWillBeNoop(new CSSValueList(CommaSeparator));
37 } 38 }
38 static PassRefPtrWillBeRawPtr<CSSValueList> createSpaceSeparated() 39 static PassRefPtrWillBeRawPtr<CSSValueList> createSpaceSeparated()
39 { 40 {
40 return adoptRefWillBeNoop(new CSSValueList(SpaceSeparator)); 41 return adoptRefWillBeNoop(new CSSValueList(SpaceSeparator));
41 } 42 }
42 static PassRefPtrWillBeRawPtr<CSSValueList> createSlashSeparated() 43 static PassRefPtrWillBeRawPtr<CSSValueList> createSlashSeparated()
43 { 44 {
44 return adoptRefWillBeNoop(new CSSValueList(SlashSeparator)); 45 return adoptRefWillBeNoop(new CSSValueList(SlashSeparator));
45 } 46 }
46 47
47 iterator begin() { return m_values.begin(); } 48 iterator begin() { return m_values.begin(); }
48 iterator end() { return m_values.end(); } 49 iterator end() { return m_values.end(); }
50 const_iterator begin() const { return m_values.begin(); }
51 const_iterator end() const { return m_values.end(); }
49 52
50 size_t length() const { return m_values.size(); } 53 size_t length() const { return m_values.size(); }
51 CSSValue* item(size_t index) { return m_values[index].get(); } 54 CSSValue* item(size_t index) { return m_values[index].get(); }
52 const CSSValue* item(size_t index) const { return m_values[index].get(); } 55 const CSSValue* item(size_t index) const { return m_values[index].get(); }
53 CSSValue* itemWithBoundsCheck(size_t index) { return index < m_values.size() ? m_values[index].get() : 0; } 56 CSSValue* itemWithBoundsCheck(size_t index) { return index < m_values.size() ? m_values[index].get() : 0; }
54 const CSSValue* itemWithBoundsCheck(size_t index) const { return index < m_v alues.size() ? m_values[index].get() : 0; } 57 const CSSValue* itemWithBoundsCheck(size_t index) const { return index < m_v alues.size() ? m_values[index].get() : 0; }
55 58
56 void append(PassRefPtrWillBeRawPtr<CSSValue> value) { m_values.append(value) ; } 59 void append(PassRefPtrWillBeRawPtr<CSSValue> value) { m_values.append(value) ; }
57 void prepend(PassRefPtrWillBeRawPtr<CSSValue> value) { m_values.prepend(valu e); } 60 void prepend(PassRefPtrWillBeRawPtr<CSSValue> value) { m_values.prepend(valu e); }
58 bool removeAll(CSSValue*); 61 bool removeAll(CSSValue*);
(...skipping 14 matching lines...) Expand all
73 explicit CSSValueList(ValueListSeparator); 76 explicit CSSValueList(ValueListSeparator);
74 77
75 WillBeHeapVector<RefPtrWillBeMember<CSSValue>, 4> m_values; 78 WillBeHeapVector<RefPtrWillBeMember<CSSValue>, 4> m_values;
76 }; 79 };
77 80
78 DEFINE_CSS_VALUE_TYPE_CASTS(CSSValueList, isValueList()); 81 DEFINE_CSS_VALUE_TYPE_CASTS(CSSValueList, isValueList());
79 82
80 } // namespace blink 83 } // namespace blink
81 84
82 #endif // CSSValueList_h 85 #endif // CSSValueList_h
OLDNEW
« Source/core/animation/FilterStyleInterpolation.cpp ('K') | « Source/core/core.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698