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

Unified Diff: Source/core/frame/FrameView.h

Issue 151483012: Make sure AllowRepaintScope::m_originalValue is always initialized (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Slight cleanup Created 6 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.h
diff --git a/Source/core/frame/FrameView.h b/Source/core/frame/FrameView.h
index ddbcc32ce91be94b87f21e292b636eadebcd7d66..8db5cf6ad089e0a0bef5528a16ad0a19ce294b95 100644
--- a/Source/core/frame/FrameView.h
+++ b/Source/core/frame/FrameView.h
@@ -551,11 +551,11 @@ class AllowRepaintScope {
public:
explicit AllowRepaintScope(FrameView* view)
: m_view(view)
+ , m_originalValue(view ? view->canRepaintDuringPerformLayout() : false)
{
if (!m_view)
return;
- m_originalValue = m_view->canRepaintDuringPerformLayout();
m_view->setCanRepaintDuringPerformLayout(true);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698