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

Side by Side Diff: Source/core/dom/Document.cpp

Issue 134643008: Remove FrameView::DeferredRepaintScope (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/frame/FrameView.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after
1651 1651
1652 if (m_styleEngine->needsUpdateActiveStylesheetsOnStyleRecalc()) 1652 if (m_styleEngine->needsUpdateActiveStylesheetsOnStyleRecalc())
1653 m_styleEngine->updateActiveStyleSheets(FullStyleUpdate); 1653 m_styleEngine->updateActiveStyleSheets(FullStyleUpdate);
1654 1654
1655 if (m_elemSheet && m_elemSheet->contents()->usesRemUnits()) 1655 if (m_elemSheet && m_elemSheet->contents()->usesRemUnits())
1656 m_styleEngine->setUsesRemUnit(true); 1656 m_styleEngine->setUsesRemUnit(true);
1657 1657
1658 { 1658 {
1659 PostAttachCallbacks::SuspendScope suspendPostAttachCallbacks; 1659 PostAttachCallbacks::SuspendScope suspendPostAttachCallbacks;
1660 RenderWidget::UpdateSuspendScope suspendWidgetHierarchyUpdates; 1660 RenderWidget::UpdateSuspendScope suspendWidgetHierarchyUpdates;
1661 FrameView::DeferredRepaintScope deferRepaints(*view());
1662 TemporaryChange<bool> changeInStyleRecalc(m_inStyleRecalc, true); 1661 TemporaryChange<bool> changeInStyleRecalc(m_inStyleRecalc, true);
1663 1662
1664 if (styleChangeType() >= SubtreeStyleChange) 1663 if (styleChangeType() >= SubtreeStyleChange)
1665 change = Force; 1664 change = Force;
1666 1665
1667 // FIXME: Cannot access the ensureStyleResolver() before calling styleFo rDocument below because 1666 // FIXME: Cannot access the ensureStyleResolver() before calling styleFo rDocument below because
1668 // apparently the StyleResolver's constructor has side effects. We shoul d fix it. 1667 // apparently the StyleResolver's constructor has side effects. We shoul d fix it.
1669 // See printing/setPrinting.html, printing/width-overflow.html though th ey only fail on 1668 // See printing/setPrinting.html, printing/width-overflow.html though th ey only fail on
1670 // mac when accessing the resolver by what appears to be a viewport size difference. 1669 // mac when accessing the resolver by what appears to be a viewport size difference.
1671 1670
(...skipping 3576 matching lines...) Expand 10 before | Expand all | Expand 10 after
5248 } 5247 }
5249 5248
5250 FastTextAutosizer* Document::fastTextAutosizer() 5249 FastTextAutosizer* Document::fastTextAutosizer()
5251 { 5250 {
5252 if (!m_fastTextAutosizer && RuntimeEnabledFeatures::fastTextAutosizingEnable d()) 5251 if (!m_fastTextAutosizer && RuntimeEnabledFeatures::fastTextAutosizingEnable d())
5253 m_fastTextAutosizer = FastTextAutosizer::create(this); 5252 m_fastTextAutosizer = FastTextAutosizer::create(this);
5254 return m_fastTextAutosizer.get(); 5253 return m_fastTextAutosizer.get();
5255 } 5254 }
5256 5255
5257 } // namespace WebCore 5256 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698