blob: e2cc9de6383739df41db5d8094a805b931d495b1 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef DeprecatedScheduleStyleRecalcDuringLayout_h
#define DeprecatedScheduleStyleRecalcDuringLayout_h
#include "base/macros.h"
#include "core/dom/DocumentLifecycle.h"
#include "platform/wtf/Allocator.h"
namespace blink {
class DeprecatedScheduleStyleRecalcDuringLayout {
STACK_ALLOCATED();
public:
explicit DeprecatedScheduleStyleRecalcDuringLayout(DocumentLifecycle&);
~DeprecatedScheduleStyleRecalcDuringLayout();
private:
DocumentLifecycle& lifecycle_;
DocumentLifecycle::DeprecatedTransition deprecated_transition_;
bool was_in_perform_layout_;
DISALLOW_COPY_AND_ASSIGN(DeprecatedScheduleStyleRecalcDuringLayout);
};
} // namespace blink
#endif