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

Unified Diff: third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollectionTest.cpp

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/dom/TreeScopeStyleSheetCollectionTest.cpp
diff --git a/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollectionTest.cpp b/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollectionTest.cpp
index c0cafd808471d64decacfe290a9b35f7efbcdc01..df9db329c5c1195687e3187b8fc980de023d6e9d 100644
--- a/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollectionTest.cpp
+++ b/third_party/WebKit/Source/core/dom/TreeScopeStyleSheetCollectionTest.cpp
@@ -13,8 +13,8 @@ namespace blink {
class TreeScopeStyleSheetCollectionTest : public testing::Test {
protected:
- using SheetVector = WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet>>;
- using ContentsVector = WillBeHeapVector<RawPtrWillBeMember<StyleSheetContents>>;
+ using SheetVector = HeapVector<Member<CSSStyleSheet>>;
+ using ContentsVector = HeapVector<Member<StyleSheetContents>>;
enum UpdateType {
Reconstruct = TreeScopeStyleSheetCollection::Reconstruct,
@@ -22,7 +22,7 @@ protected:
Additive = TreeScopeStyleSheetCollection::Additive
};
- static PassRefPtrWillBeRawPtr<CSSStyleSheet> createSheet()
+ static RawPtr<CSSStyleSheet> createSheet()
{
return CSSStyleSheet::create(StyleSheetContents::create(CSSParserContext(HTMLStandardMode, nullptr)));
}
@@ -42,8 +42,8 @@ protected:
TEST_F(TreeScopeStyleSheetCollectionTest, CompareStyleSheetsAppend)
{
- RefPtrWillBeRawPtr<CSSStyleSheet> sheet1 = createSheet();
- RefPtrWillBeRawPtr<CSSStyleSheet> sheet2 = createSheet();
+ RawPtr<CSSStyleSheet> sheet1 = createSheet();
+ RawPtr<CSSStyleSheet> sheet2 = createSheet();
ContentsVector added;
SheetVector previous;
@@ -61,8 +61,8 @@ TEST_F(TreeScopeStyleSheetCollectionTest, CompareStyleSheetsAppend)
TEST_F(TreeScopeStyleSheetCollectionTest, CompareStyleSheetsPrepend)
{
- RefPtrWillBeRawPtr<CSSStyleSheet> sheet1 = createSheet();
- RefPtrWillBeRawPtr<CSSStyleSheet> sheet2 = createSheet();
+ RawPtr<CSSStyleSheet> sheet1 = createSheet();
+ RawPtr<CSSStyleSheet> sheet2 = createSheet();
ContentsVector added;
SheetVector previous;
@@ -80,9 +80,9 @@ TEST_F(TreeScopeStyleSheetCollectionTest, CompareStyleSheetsPrepend)
TEST_F(TreeScopeStyleSheetCollectionTest, CompareStyleSheetsInsert)
{
- RefPtrWillBeRawPtr<CSSStyleSheet> sheet1 = createSheet();
- RefPtrWillBeRawPtr<CSSStyleSheet> sheet2 = createSheet();
- RefPtrWillBeRawPtr<CSSStyleSheet> sheet3 = createSheet();
+ RawPtr<CSSStyleSheet> sheet1 = createSheet();
+ RawPtr<CSSStyleSheet> sheet2 = createSheet();
+ RawPtr<CSSStyleSheet> sheet3 = createSheet();
ContentsVector added;
SheetVector previous;
@@ -102,9 +102,9 @@ TEST_F(TreeScopeStyleSheetCollectionTest, CompareStyleSheetsInsert)
TEST_F(TreeScopeStyleSheetCollectionTest, CompareStyleSheetsRemove)
{
- RefPtrWillBeRawPtr<CSSStyleSheet> sheet1 = createSheet();
- RefPtrWillBeRawPtr<CSSStyleSheet> sheet2 = createSheet();
- RefPtrWillBeRawPtr<CSSStyleSheet> sheet3 = createSheet();
+ RawPtr<CSSStyleSheet> sheet1 = createSheet();
+ RawPtr<CSSStyleSheet> sheet2 = createSheet();
+ RawPtr<CSSStyleSheet> sheet3 = createSheet();
ContentsVector added;
SheetVector previous;
@@ -126,9 +126,9 @@ TEST_F(TreeScopeStyleSheetCollectionTest, CompareStyleSheetsRemove)
TEST_F(TreeScopeStyleSheetCollectionTest, CompareStyleSheetsInsertRemove)
{
- RefPtrWillBeRawPtr<CSSStyleSheet> sheet1 = createSheet();
- RefPtrWillBeRawPtr<CSSStyleSheet> sheet2 = createSheet();
- RefPtrWillBeRawPtr<CSSStyleSheet> sheet3 = createSheet();
+ RawPtr<CSSStyleSheet> sheet1 = createSheet();
+ RawPtr<CSSStyleSheet> sheet2 = createSheet();
+ RawPtr<CSSStyleSheet> sheet3 = createSheet();
ContentsVector added;
SheetVector previous;

Powered by Google App Engine
This is Rietveld 408576698