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

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

Issue 393673003: Revert "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
1035 } 1032 }
1036 1033
1037 DocumentLifecycle& FrameView::lifecycle() const 1034 DocumentLifecycle& FrameView::lifecycle() const
1038 { 1035 {
1039 return m_frame->document()->lifecycle(); 1036 return m_frame->document()->lifecycle();
1040 } 1037 }
1041 1038
1042 void FrameView::gatherDebugLayoutRects(RenderObject* layoutRoot) 1039 void FrameView::gatherDebugLayoutRects(RenderObject* layoutRoot)
1043 { 1040 {
1044 bool isTracing; 1041 bool isTracing;
(...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after
3279 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation) 3276 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation)
3280 { 3277 {
3281 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); 3278 ScrollableArea::willRemoveScrollbar(scrollbar, orientation);
3282 if (AXObjectCache* cache = axObjectCache()) { 3279 if (AXObjectCache* cache = axObjectCache()) {
3283 cache->remove(scrollbar); 3280 cache->remove(scrollbar);
3284 cache->handleScrollbarUpdate(this); 3281 cache->handleScrollbarUpdate(this);
3285 } 3282 }
3286 } 3283 }
3287 3284
3288 } // namespace WebCore 3285 } // namespace WebCore
OLDNEW
« no previous file with comments | « LayoutTests/platform/win/svg/custom/use-setAttribute-crash-expected.txt ('k') | Source/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698