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

Unified Diff: third_party/WebKit/Source/core/css/CSSValueList.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/CSSValueList.h
diff --git a/third_party/WebKit/Source/core/css/CSSValueList.h b/third_party/WebKit/Source/core/css/CSSValueList.h
index ad0713bf5e598298b36adde6a85d23cadbfcd0fc..2a88943db889b7536f5d4495f79200016786d487 100644
--- a/third_party/WebKit/Source/core/css/CSSValueList.h
+++ b/third_party/WebKit/Source/core/css/CSSValueList.h
@@ -30,20 +30,20 @@ namespace blink {
class CORE_EXPORT CSSValueList : public CSSValue {
public:
- using iterator = WillBeHeapVector<RefPtrWillBeMember<CSSValue>, 4>::iterator;
- using const_iterator = WillBeHeapVector<RefPtrWillBeMember<CSSValue>, 4>::const_iterator;
+ using iterator = HeapVector<Member<CSSValue>, 4>::iterator;
+ using const_iterator = HeapVector<Member<CSSValue>, 4>::const_iterator;
- static PassRefPtrWillBeRawPtr<CSSValueList> createCommaSeparated()
+ static RawPtr<CSSValueList> createCommaSeparated()
{
- return adoptRefWillBeNoop(new CSSValueList(CommaSeparator));
+ return new CSSValueList(CommaSeparator);
}
- static PassRefPtrWillBeRawPtr<CSSValueList> createSpaceSeparated()
+ static RawPtr<CSSValueList> createSpaceSeparated()
{
- return adoptRefWillBeNoop(new CSSValueList(SpaceSeparator));
+ return new CSSValueList(SpaceSeparator);
}
- static PassRefPtrWillBeRawPtr<CSSValueList> createSlashSeparated()
+ static RawPtr<CSSValueList> createSlashSeparated()
{
- return adoptRefWillBeNoop(new CSSValueList(SlashSeparator));
+ return new CSSValueList(SlashSeparator);
}
iterator begin() { return m_values.begin(); }
@@ -57,11 +57,11 @@ public:
CSSValue* itemWithBoundsCheck(size_t index) { return index < m_values.size() ? m_values[index].get() : nullptr; }
const CSSValue* itemWithBoundsCheck(size_t index) const { return index < m_values.size() ? m_values[index].get() : nullptr; }
- void append(PassRefPtrWillBeRawPtr<CSSValue> value) { m_values.append(value); }
- void prepend(PassRefPtrWillBeRawPtr<CSSValue> value) { m_values.prepend(value); }
+ void append(RawPtr<CSSValue> value) { m_values.append(value); }
+ void prepend(RawPtr<CSSValue> value) { m_values.prepend(value); }
bool removeAll(CSSValue*);
bool hasValue(CSSValue*) const;
- PassRefPtrWillBeRawPtr<CSSValueList> copy();
+ RawPtr<CSSValueList> copy();
String customCSSText() const;
bool equals(const CSSValueList&) const;
@@ -76,7 +76,7 @@ protected:
private:
explicit CSSValueList(ValueListSeparator);
- WillBeHeapVector<RefPtrWillBeMember<CSSValue>, 4> m_values;
+ HeapVector<Member<CSSValue>, 4> m_values;
};
DEFINE_CSS_VALUE_TYPE_CASTS(CSSValueList, isValueList());
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSValueList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698