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

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

Issue 443773002: Delete UpdateLayerPositionsFlags (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 using namespace HTMLNames; 88 using namespace HTMLNames;
89 89
90 double FrameView::s_currentFrameTimeStamp = 0.0; 90 double FrameView::s_currentFrameTimeStamp = 0.0;
91 bool FrameView::s_inPaintContents = false; 91 bool FrameView::s_inPaintContents = false;
92 92
93 // The maximum number of updateWidgets iterations that should be done before ret urning. 93 // The maximum number of updateWidgets iterations that should be done before ret urning.
94 static const unsigned maxUpdateWidgetsIterations = 2; 94 static const unsigned maxUpdateWidgetsIterations = 2;
95 static const double resourcePriorityUpdateDelayAfterScroll = 0.250; 95 static const double resourcePriorityUpdateDelayAfterScroll = 0.250;
96 96
97 static RenderLayer::UpdateLayerPositionsFlags updateLayerPositionFlags(RenderLay er* layer, bool isRelayoutingSubtree)
98 {
99 if (isRelayoutingSubtree && (layer->isPaginated() || layer->enclosingPaginat ionLayer()))
100 return RenderLayer::UpdatePagination;
101
102 return 0;
103 }
104
105 FrameView::FrameView(LocalFrame* frame) 97 FrameView::FrameView(LocalFrame* frame)
106 : m_frame(frame) 98 : m_frame(frame)
107 , m_canHaveScrollbars(true) 99 , m_canHaveScrollbars(true)
108 , m_slowRepaintObjectCount(0) 100 , m_slowRepaintObjectCount(0)
109 , m_hasPendingLayout(false) 101 , m_hasPendingLayout(false)
110 , m_layoutSubtreeRoot(0) 102 , m_layoutSubtreeRoot(0)
111 , m_inSynchronousPostLayout(false) 103 , m_inSynchronousPostLayout(false)
112 , m_postLayoutTasksTimer(this, &FrameView::postLayoutTimerFired) 104 , m_postLayoutTasksTimer(this, &FrameView::postLayoutTimerFired)
113 , m_updateWidgetsTimer(this, &FrameView::updateWidgetsTimerFired) 105 , m_updateWidgetsTimer(this, &FrameView::updateWidgetsTimerFired)
114 , m_isTransparent(false) 106 , m_isTransparent(false)
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 // We need to ensure that we mark up all renderers up to the RenderView 928 // We need to ensure that we mark up all renderers up to the RenderView
937 // for paint invalidation. This simplifies our code as we just always 929 // for paint invalidation. This simplifies our code as we just always
938 // do a full tree walk. 930 // do a full tree walk.
939 if (RenderObject* container = rootForThisLayout->container()) 931 if (RenderObject* container = rootForThisLayout->container())
940 container->setMayNeedPaintInvalidation(true); 932 container->setMayNeedPaintInvalidation(true);
941 } // Reset m_layoutSchedulingEnabled to its previous value. 933 } // Reset m_layoutSchedulingEnabled to its previous value.
942 934
943 if (!inSubtreeLayout && !toRenderView(rootForThisLayout)->document().printin g()) 935 if (!inSubtreeLayout && !toRenderView(rootForThisLayout)->document().printin g())
944 adjustViewSize(); 936 adjustViewSize();
945 937
946 layer->updateLayerPositionsAfterLayout(updateLayerPositionFlags(layer, inSub treeLayout)); 938 layer->updateLayerPositionsAfterLayout();
947 939
948 if (m_doFullPaintInvalidation) 940 if (m_doFullPaintInvalidation)
949 renderView()->compositor()->fullyInvalidatePaint(); 941 renderView()->compositor()->fullyInvalidatePaint();
950 renderView()->compositor()->didLayout(); 942 renderView()->compositor()->didLayout();
951 943
952 m_layoutCount++; 944 m_layoutCount++;
953 945
954 if (AXObjectCache* cache = rootForThisLayout->document().axObjectCache()) { 946 if (AXObjectCache* cache = rootForThisLayout->document().axObjectCache()) {
955 const KURL& url = rootForThisLayout->document().url(); 947 const KURL& url = rootForThisLayout->document().url();
956 if (url.isValid() && !url.isAboutBlankURL()) 948 if (url.isValid() && !url.isAboutBlankURL())
(...skipping 2308 matching lines...) Expand 10 before | Expand all | Expand 10 after
3265 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation) 3257 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation)
3266 { 3258 {
3267 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); 3259 ScrollableArea::willRemoveScrollbar(scrollbar, orientation);
3268 if (AXObjectCache* cache = axObjectCache()) { 3260 if (AXObjectCache* cache = axObjectCache()) {
3269 cache->remove(scrollbar); 3261 cache->remove(scrollbar);
3270 cache->handleScrollbarUpdate(this); 3262 cache->handleScrollbarUpdate(this);
3271 } 3263 }
3272 } 3264 }
3273 3265
3274 } // namespace blink 3266 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderLayer.h » ('j') | Source/core/rendering/RenderLayer.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698