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

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

Issue 360833002: Divorce PaintInvalidationState from LayoutState (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ToT-Ed again :) Created 6 years, 5 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 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 // We should only invalidate paints for the outer most layout. This works as 1013 // We should only invalidate paints for the outer most layout. This works as
1014 // we continue to track paint invalidation rects until this function is call ed. 1014 // we continue to track paint invalidation rects until this function is call ed.
1015 ASSERT(!m_nestedLayoutCount); 1015 ASSERT(!m_nestedLayoutCount);
1016 1016
1017 TRACE_EVENT1("blink", "FrameView::invalidateTree", "root", root->debugName() .ascii()); 1017 TRACE_EVENT1("blink", "FrameView::invalidateTree", "root", root->debugName() .ascii());
1018 1018
1019 // FIXME: really, we're in the paint invalidation phase here, and the compos iting queries are legal. 1019 // FIXME: really, we're in the paint invalidation phase here, and the compos iting queries are legal.
1020 // Until those states are fully fledged, I'll just disable the ASSERTS. 1020 // Until those states are fully fledged, I'll just disable the ASSERTS.
1021 DisableCompositingQueryAsserts compositingQueryAssertsDisabler; 1021 DisableCompositingQueryAsserts compositingQueryAssertsDisabler;
1022 1022
1023 LayoutState rootLayoutState(*root); 1023 InvalidationTreeWalkState invalidationTreeWalkState(*root);
1024 1024
1025 root->invalidateTreeAfterLayout(*root->containerForPaintInvalidation()); 1025 root->invalidateTreeAfterLayout(invalidationTreeWalkState);
1026 1026
1027 // Invalidate the paint of the frameviews scrollbars if needed 1027 // Invalidate the paint of the frameviews scrollbars if needed
1028 if (hasVerticalBarDamage()) 1028 if (hasVerticalBarDamage())
1029 invalidateRect(verticalBarDamage()); 1029 invalidateRect(verticalBarDamage());
1030 if (hasHorizontalBarDamage()) 1030 if (hasHorizontalBarDamage())
1031 invalidateRect(horizontalBarDamage()); 1031 invalidateRect(horizontalBarDamage());
1032 resetScrollbarDamage(); 1032 resetScrollbarDamage();
1033 } 1033 }
1034 1034
1035 DocumentLifecycle& FrameView::lifecycle() const 1035 DocumentLifecycle& FrameView::lifecycle() const
(...skipping 2223 matching lines...) Expand 10 before | Expand all | Expand 10 after
3259 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation) 3259 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation)
3260 { 3260 {
3261 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); 3261 ScrollableArea::willRemoveScrollbar(scrollbar, orientation);
3262 if (AXObjectCache* cache = axObjectCache()) { 3262 if (AXObjectCache* cache = axObjectCache()) {
3263 cache->remove(scrollbar); 3263 cache->remove(scrollbar);
3264 cache->handleScrollbarUpdate(this); 3264 cache->handleScrollbarUpdate(this);
3265 } 3265 }
3266 } 3266 }
3267 3267
3268 } // namespace WebCore 3268 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698