This source file includes following definitions.
- m_wasInPerformLayout
#include "config.h"
#include "core/frame/DeprecatedScheduleStyleRecalcDuringLayout.h"
#include "wtf/Assertions.h"
namespace WebCore {
DeprecatedScheduleStyleRecalcDuringLayout::DeprecatedScheduleStyleRecalcDuringLayout(DocumentLifecycle& lifecycle)
: m_lifecycle(lifecycle)
, m_deprecatedTransition(DocumentLifecycle::InPerformLayout, DocumentLifecycle::StyleRecalcPending)
, m_wasInPerformLayout(lifecycle.state() == DocumentLifecycle::InPerformLayout)
{
}
DeprecatedScheduleStyleRecalcDuringLayout::~DeprecatedScheduleStyleRecalcDuringLayout()
{
if (m_wasInPerformLayout && m_lifecycle.state() != DocumentLifecycle::InPerformLayout) {
ASSERT(m_lifecycle.state() == DocumentLifecycle::StyleRecalcPending);
m_lifecycle.advanceTo(DocumentLifecycle::InPerformLayout);
}
}
}