Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(797)

Unified Diff: Source/core/frame/DeprecatedScheduleStyleRecalcDuringCompositingUpdate.cpp

Issue 232013002: Rewind the DocumentLifecycle when dirtying state (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address Ojan's comments Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/frame/DeprecatedScheduleStyleRecalcDuringCompositingUpdate.cpp
diff --git a/Source/core/frame/DeprecatedScheduleStyleRecalcDuringCompositingUpdate.cpp b/Source/core/frame/DeprecatedScheduleStyleRecalcDuringCompositingUpdate.cpp
index daaec3a7575be6bd773135aaf0611af8cc281684..398b4c364d2ad7aa7ed5c820579e44a61afb5b3c 100644
--- a/Source/core/frame/DeprecatedScheduleStyleRecalcDuringCompositingUpdate.cpp
+++ b/Source/core/frame/DeprecatedScheduleStyleRecalcDuringCompositingUpdate.cpp
@@ -11,7 +11,7 @@ namespace WebCore {
DeprecatedScheduleStyleRecalcDuringCompositingUpdate::DeprecatedScheduleStyleRecalcDuringCompositingUpdate(DocumentLifecycle& lifecycle)
: m_lifecycle(lifecycle)
- , m_deprecatedTransition(lifecycle.state(), DocumentLifecycle::StyleRecalcPending)
+ , m_deprecatedTransition(lifecycle.state(), DocumentLifecycle::VisualUpdatePending)
, m_originalState(lifecycle.state())
{
}
@@ -23,7 +23,7 @@ DeprecatedScheduleStyleRecalcDuringCompositingUpdate::~DeprecatedScheduleStyleRe
&& m_originalState != DocumentLifecycle::InCompositingUpdate)
return;
if (m_lifecycle.state() != m_originalState) {
- ASSERT(m_lifecycle.state() == DocumentLifecycle::StyleRecalcPending);
+ ASSERT(m_lifecycle.state() == DocumentLifecycle::VisualUpdatePending);
m_lifecycle.advanceTo(m_originalState);
}
}
« no previous file with comments | « Source/core/dom/DocumentLifecycle.cpp ('k') | Source/core/frame/DeprecatedScheduleStyleRecalcDuringLayout.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698