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

Side by Side Diff: Source/core/rendering/compositing/CompositedLayerMapping.h

Issue 701873002: Revert "Don't invalidate scrolling container layer when scrolling contents need invalidation" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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) 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // Updates whether a backing store is needed for intrinsic reasons (that is, based on the 127 // Updates whether a backing store is needed for intrinsic reasons (that is, based on the
128 // layer's own properties or compositing reasons); returns true if the intri nsic need for 128 // layer's own properties or compositing reasons); returns true if the intri nsic need for
129 // a backing store changed. 129 // a backing store changed.
130 bool updateRequiresOwnBackingStoreForIntrinsicReasons(); 130 bool updateRequiresOwnBackingStoreForIntrinsicReasons();
131 131
132 void setSquashingContentsNeedDisplay(); 132 void setSquashingContentsNeedDisplay();
133 void setContentsNeedDisplay(); 133 void setContentsNeedDisplay();
134 // r is in the coordinate space of the layer's render object 134 // r is in the coordinate space of the layer's render object
135 void setContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidationReason ); 135 void setContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidationReason );
136 136
137 void setScrollingContentsNeedDisplay();
138 // FIXME: Temporarily the rect is in the coordinate space of the scrolling c ontainer layer.
139 // Will make it in the coordinate space of the scrolling contents layer. crb ug.com/416539.
140 void setScrollingContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidat ionReason);
141
142 // Notification from the renderer that its content changed. 137 // Notification from the renderer that its content changed.
143 void contentChanged(ContentChangeType); 138 void contentChanged(ContentChangeType);
144 139
145 LayoutRect compositedBounds() const { return m_compositedBounds; } 140 LayoutRect compositedBounds() const { return m_compositedBounds; }
146 IntRect pixelSnappedCompositedBounds() const; 141 IntRect pixelSnappedCompositedBounds() const;
147 142
148 void positionOverflowControlsLayers(const IntSize& offsetFromRoot); 143 void positionOverflowControlsLayers(const IntSize& offsetFromRoot);
149 bool hasUnpositionedOverflowControlsLayers() const; 144 bool hasUnpositionedOverflowControlsLayers() const;
150 145
151 // Returns true if the assignment actually changed the assigned squashing la yer. 146 // Returns true if the assignment actually changed the assigned squashing la yer.
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 unsigned m_isMainFrameRenderViewLayer : 1; 423 unsigned m_isMainFrameRenderViewLayer : 1;
429 unsigned m_requiresOwnBackingStoreForIntrinsicReasons : 1; 424 unsigned m_requiresOwnBackingStoreForIntrinsicReasons : 1;
430 unsigned m_requiresOwnBackingStoreForAncestorReasons : 1; 425 unsigned m_requiresOwnBackingStoreForAncestorReasons : 1;
431 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; 426 unsigned m_backgroundLayerPaintsFixedRootBackground : 1;
432 unsigned m_scrollingContentsAreEmpty : 1; 427 unsigned m_scrollingContentsAreEmpty : 1;
433 }; 428 };
434 429
435 } // namespace blink 430 } // namespace blink
436 431
437 #endif // CompositedLayerMapping_h 432 #endif // CompositedLayerMapping_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderView.cpp ('k') | Source/core/rendering/compositing/CompositedLayerMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698