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

Side by Side Diff: Source/core/frame/FrameView.cpp

Issue 220593008: Delete CompositedLayerMapping::updateAfterLayout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/rendering/RenderLayer.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) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Dirk Mueller <mueller@kde.org> 5 * 2000 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * Copyright (C) 2009 Google Inc. All rights reserved. 9 * Copyright (C) 2009 Google Inc. All rights reserved.
10 * 10 *
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 double FrameView::s_currentFrameTimeStamp = 0.0; 87 double FrameView::s_currentFrameTimeStamp = 0.0;
88 bool FrameView::s_inPaintContents = false; 88 bool FrameView::s_inPaintContents = false;
89 89
90 // The maximum number of updateWidgets iterations that should be done before ret urning. 90 // The maximum number of updateWidgets iterations that should be done before ret urning.
91 static const unsigned maxUpdateWidgetsIterations = 2; 91 static const unsigned maxUpdateWidgetsIterations = 2;
92 static const double resourcePriorityUpdateDelayAfterScroll = 0.250; 92 static const double resourcePriorityUpdateDelayAfterScroll = 0.250;
93 93
94 static RenderLayer::UpdateLayerPositionsFlags updateLayerPositionFlags(RenderLay er* layer, bool isRelayoutingSubtree, bool didFullRepaint) 94 static RenderLayer::UpdateLayerPositionsFlags updateLayerPositionFlags(RenderLay er* layer, bool isRelayoutingSubtree, bool didFullRepaint)
95 { 95 {
96 RenderLayer::UpdateLayerPositionsFlags flags = RenderLayer::defaultFlags; 96 RenderLayer::UpdateLayerPositionsFlags flags = didFullRepaint ? RenderLayer: :NeedsFullRepaintInBacking : RenderLayer::CheckForRepaint;
97 97
98 if (didFullRepaint) {
99 flags &= ~RenderLayer::CheckForRepaint;
100 flags |= RenderLayer::NeedsFullRepaintInBacking;
101 }
102 if (isRelayoutingSubtree && layer->isPaginated()) 98 if (isRelayoutingSubtree && layer->isPaginated())
103 flags |= RenderLayer::UpdatePagination; 99 flags |= RenderLayer::UpdatePagination;
100
104 return flags; 101 return flags;
105 } 102 }
106 103
107 class FrameViewLayoutStateMaintainer { 104 class FrameViewLayoutStateMaintainer {
108 WTF_MAKE_NONCOPYABLE(FrameViewLayoutStateMaintainer); 105 WTF_MAKE_NONCOPYABLE(FrameViewLayoutStateMaintainer);
109 public: 106 public:
110 FrameViewLayoutStateMaintainer(RenderObject& root, bool inSubtreeLayout) 107 FrameViewLayoutStateMaintainer(RenderObject& root, bool inSubtreeLayout)
111 : m_view(*root.view()) 108 : m_view(*root.view())
112 , m_inSubtreeLayout(inSubtreeLayout) 109 , m_inSubtreeLayout(inSubtreeLayout)
113 , m_disabled(inSubtreeLayout && m_view.shouldDisableLayoutStateForSubtre e(root)) 110 , m_disabled(inSubtreeLayout && m_view.shouldDisableLayoutStateForSubtre e(root))
(...skipping 3167 matching lines...) Expand 10 before | Expand all | Expand 10 after
3281 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation) 3278 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation)
3282 { 3279 {
3283 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); 3280 ScrollableArea::willRemoveScrollbar(scrollbar, orientation);
3284 if (AXObjectCache* cache = axObjectCache()) { 3281 if (AXObjectCache* cache = axObjectCache()) {
3285 cache->remove(scrollbar); 3282 cache->remove(scrollbar);
3286 cache->handleScrollbarUpdate(this); 3283 cache->handleScrollbarUpdate(this);
3287 } 3284 }
3288 } 3285 }
3289 3286
3290 } // namespace WebCore 3287 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698