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

Side by Side Diff: Source/core/rendering/RenderLayer.h

Issue 354613003: Properly repaint RenderLayer's descendants when it moves (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use a flag instead of a seperate tree walk. Created 6 years, 6 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) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 RenderLayerCompositor* compositor() const; 150 RenderLayerCompositor* compositor() const;
151 151
152 // Notification from the renderer that its content changed (e.g. current fra me of image changed). 152 // Notification from the renderer that its content changed (e.g. current fra me of image changed).
153 // Allows updates of layer content without invalidating paint. 153 // Allows updates of layer content without invalidating paint.
154 void contentChanged(ContentChangeType); 154 void contentChanged(ContentChangeType);
155 155
156 enum UpdateLayerPositionsFlag { 156 enum UpdateLayerPositionsFlag {
157 CheckForPaintInvalidation = 1 << 0, 157 CheckForPaintInvalidation = 1 << 0,
158 NeedsFullPaintInvalidationInBacking = 1 << 1, 158 NeedsFullPaintInvalidationInBacking = 1 << 1,
159 UpdatePagination = 1 << 2, 159 UpdatePagination = 1 << 2,
160 ForceMayNeedPaintInvalidation = 1 << 3,
160 }; 161 };
161 typedef unsigned UpdateLayerPositionsFlags; 162 typedef unsigned UpdateLayerPositionsFlags;
162 163
163 void updateLayerPositionsAfterLayout(const RenderLayer* rootLayer, UpdateLay erPositionsFlags); 164 void updateLayerPositionsAfterLayout(const RenderLayer* rootLayer, UpdateLay erPositionsFlags);
164 void updateLayerPositionsAfterOverflowScroll(); 165 void updateLayerPositionsAfterOverflowScroll();
165 void updateLayerPositionsAfterDocumentScroll(); 166 void updateLayerPositionsAfterDocumentScroll();
166 167
167 // FIXME: Should updateLayerPositions be private? 168 // FIXME: Should updateLayerPositions be private?
168 void updateLayerPositionRecursive(UpdateLayerPositionsFlags = CheckForPaintI nvalidation); 169 void updateLayerPositionRecursive(UpdateLayerPositionsFlags = CheckForPaintI nvalidation);
169 170
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 731
731 } // namespace WebCore 732 } // namespace WebCore
732 733
733 #ifndef NDEBUG 734 #ifndef NDEBUG
734 // Outside the WebCore namespace for ease of invocation from gdb. 735 // Outside the WebCore namespace for ease of invocation from gdb.
735 void showLayerTree(const WebCore::RenderLayer*); 736 void showLayerTree(const WebCore::RenderLayer*);
736 void showLayerTree(const WebCore::RenderObject*); 737 void showLayerTree(const WebCore::RenderObject*);
737 #endif 738 #endif
738 739
739 #endif // RenderLayer_h 740 #endif // RenderLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698