1 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef DeprecatedScheduleStyleRecalcDuringLayout_h 6 #define DeprecatedScheduleStyleRecalcDuringLayout_h 7 8 #include "core/dom/DocumentLifecycle.h" 9 10 namespace WebCore { 11 12 class DeprecatedScheduleStyleRecalcDuringLayout { 13 WTF_MAKE_NONCOPYABLE(DeprecatedScheduleStyleRecalcDuringLayout); 14 public: 15 explicit DeprecatedScheduleStyleRecalcDuringLayout(DocumentLifecycle&); 16 ~DeprecatedScheduleStyleRecalcDuringLayout(); 17 18 private: 19 DocumentLifecycle& m_lifecycle; 20 DocumentLifecycle::DeprecatedTransition m_deprecatedTransition; 21 bool m_wasInPerformLayout; 22 }; 23 24 } 25 26 #endif 27