| Index: Source/core/paint/LayoutObjectDrawingRecorderTest.cpp
|
| diff --git a/Source/core/paint/LayoutObjectDrawingRecorderTest.cpp b/Source/core/paint/LayoutObjectDrawingRecorderTest.cpp
|
| index 1f5bf1bbed9a315c076241034230f686c8cffe52..104f075d45d39c4af10c38451fcb240d08608eb6 100644
|
| --- a/Source/core/paint/LayoutObjectDrawingRecorderTest.cpp
|
| +++ b/Source/core/paint/LayoutObjectDrawingRecorderTest.cpp
|
| @@ -18,7 +18,9 @@ namespace blink {
|
|
|
| class LayoutObjectDrawingRecorderTest : public RenderingTest {
|
| public:
|
| - LayoutObjectDrawingRecorderTest() : m_layoutView(nullptr) { }
|
| + LayoutObjectDrawingRecorderTest()
|
| + : m_layoutView(nullptr)
|
| + , m_originalSlimmingPaintEnabled(RuntimeEnabledFeatures::slimmingPaintEnabled()) { }
|
|
|
| protected:
|
| LayoutView& layoutView() { return *m_layoutView; }
|
| @@ -39,10 +41,11 @@ private:
|
|
|
| virtual void TearDown() override
|
| {
|
| - RuntimeEnabledFeatures::setSlimmingPaintEnabled(false);
|
| + RuntimeEnabledFeatures::setSlimmingPaintEnabled(m_originalSlimmingPaintEnabled);
|
| }
|
|
|
| LayoutView* m_layoutView;
|
| + bool m_originalSlimmingPaintEnabled;
|
| };
|
|
|
| namespace {
|
|
|