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

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

Issue 389573008: Enforce clearing renderers' paint invalidation state (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 rootForPaintInvalidation->invalidateTreeAfterLayout(*rootForPaintInvalidatio n->containerForPaintInvalidation()); 1022 rootForPaintInvalidation->invalidateTreeAfterLayout(*rootForPaintInvalidatio n->containerForPaintInvalidation());
1023 1023
1024 // Invalidate the paint of the frameviews scrollbars if needed 1024 // Invalidate the paint of the frameviews scrollbars if needed
1025 if (hasVerticalBarDamage()) 1025 if (hasVerticalBarDamage())
1026 invalidateRect(verticalBarDamage()); 1026 invalidateRect(verticalBarDamage());
1027 if (hasHorizontalBarDamage()) 1027 if (hasHorizontalBarDamage())
1028 invalidateRect(horizontalBarDamage()); 1028 invalidateRect(horizontalBarDamage());
1029 resetScrollbarDamage(); 1029 resetScrollbarDamage();
1030 1030
1031 m_doFullPaintInvalidation = false; 1031 m_doFullPaintInvalidation = false;
1032 #ifndef NDEBUG
1033 renderView()->assertSubtreeClearedPaintInvalidationState();
1034 #endif
1032 } 1035 }
1033 1036
1034 DocumentLifecycle& FrameView::lifecycle() const 1037 DocumentLifecycle& FrameView::lifecycle() const
1035 { 1038 {
1036 return m_frame->document()->lifecycle(); 1039 return m_frame->document()->lifecycle();
1037 } 1040 }
1038 1041
1039 void FrameView::gatherDebugLayoutRects(RenderObject* layoutRoot) 1042 void FrameView::gatherDebugLayoutRects(RenderObject* layoutRoot)
1040 { 1043 {
1041 bool isTracing; 1044 bool isTracing;
(...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after
3276 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation) 3279 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation)
3277 { 3280 {
3278 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); 3281 ScrollableArea::willRemoveScrollbar(scrollbar, orientation);
3279 if (AXObjectCache* cache = axObjectCache()) { 3282 if (AXObjectCache* cache = axObjectCache()) {
3280 cache->remove(scrollbar); 3283 cache->remove(scrollbar);
3281 cache->handleScrollbarUpdate(this); 3284 cache->handleScrollbarUpdate(this);
3282 } 3285 }
3283 } 3286 }
3284 3287
3285 } // namespace WebCore 3288 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderObject.h » ('j') | Source/core/rendering/RenderObject.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698