| Index: Source/platform/graphics/paint/DisplayItemListTest.cpp
|
| diff --git a/Source/platform/graphics/paint/DisplayItemListTest.cpp b/Source/platform/graphics/paint/DisplayItemListTest.cpp
|
| index 01c5fd6a30d00e21662f307a071bf9b2a634e9d5..d0527e658a51af52625c32770afe89e4338722c9 100644
|
| --- a/Source/platform/graphics/paint/DisplayItemListTest.cpp
|
| +++ b/Source/platform/graphics/paint/DisplayItemListTest.cpp
|
| @@ -15,6 +15,10 @@
|
| namespace blink {
|
|
|
| class DisplayItemListTest : public ::testing::Test {
|
| +public:
|
| + DisplayItemListTest()
|
| + : m_originalSlimmingPaintEnabled(RuntimeEnabledFeatures::slimmingPaintEnabled()) { }
|
| +
|
| protected:
|
| DisplayItemList& displayItemList() { return m_displayItemList; }
|
| const DisplayItems& newPaintListBeforeUpdate() { return displayItemList().m_newDisplayItems; }
|
| @@ -26,10 +30,11 @@ private:
|
| }
|
| virtual void TearDown() override
|
| {
|
| - RuntimeEnabledFeatures::setSlimmingPaintEnabled(false);
|
| + RuntimeEnabledFeatures::setSlimmingPaintEnabled(m_originalSlimmingPaintEnabled);
|
| }
|
|
|
| DisplayItemList m_displayItemList;
|
| + bool m_originalSlimmingPaintEnabled;
|
| };
|
|
|
| const DisplayItem::Type foregroundDrawingType = static_cast<DisplayItem::Type>(DisplayItem::DrawingPaintPhaseFirst + 4);
|
|
|