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

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

Issue 204053002: Fix pixel snapping of stacked sub-pixel composited layers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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) 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // a backing store changed. 150 // a backing store changed.
151 bool updateRequiresOwnBackingStoreForIntrinsicReasons(); 151 bool updateRequiresOwnBackingStoreForIntrinsicReasons();
152 152
153 void setContentsNeedDisplay(); 153 void setContentsNeedDisplay();
154 // r is in the coordinate space of the layer's render object 154 // r is in the coordinate space of the layer's render object
155 void setContentsNeedDisplayInRect(const IntRect&); 155 void setContentsNeedDisplayInRect(const IntRect&);
156 156
157 // Notification from the renderer that its content changed. 157 // Notification from the renderer that its content changed.
158 void contentChanged(ContentChangeType); 158 void contentChanged(ContentChangeType);
159 159
160 LayoutRect compositedBounds() const; 160 LayoutRect compositedBounds() const { return m_compositedBounds; }
161 IntRect pixelSnappedCompositedBounds() const;
161 void setCompositedBounds(const LayoutRect&); 162 void setCompositedBounds(const LayoutRect&);
162 void updateCompositedBounds(); 163 void updateCompositedBounds();
163 164
164 void updateAfterWidgetResize(); 165 void updateAfterWidgetResize();
165 void positionOverflowControlsLayers(const IntSize& offsetFromRoot); 166 void positionOverflowControlsLayers(const IntSize& offsetFromRoot);
166 bool hasUnpositionedOverflowControlsLayers() const; 167 bool hasUnpositionedOverflowControlsLayers() const;
167 168
168 // Returns true if the assignment actually changed the assigned squashing la yer. 169 // Returns true if the assignment actually changed the assigned squashing la yer.
169 bool updateSquashingLayerAssignment(RenderLayer*, IntSize offsetFromSquashin gCLM, size_t nextSquashedLayerIndex); 170 bool updateSquashingLayerAssignment(RenderLayer*, IntSize offsetFromSquashin gCLM, size_t nextSquashedLayerIndex);
170 void removeRenderLayerFromSquashingGraphicsLayer(const RenderLayer*); 171 void removeRenderLayerFromSquashingGraphicsLayer(const RenderLayer*);
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 bool m_requiresOwnBackingStoreForAncestorReasons : 1; 361 bool m_requiresOwnBackingStoreForAncestorReasons : 1;
361 bool m_canCompositeFilters : 1; 362 bool m_canCompositeFilters : 1;
362 bool m_backgroundLayerPaintsFixedRootBackground : 1; 363 bool m_backgroundLayerPaintsFixedRootBackground : 1;
363 bool m_needToUpdateGeometry : 1; 364 bool m_needToUpdateGeometry : 1;
364 bool m_needToUpdateGeometryOfAllDecendants : 1; 365 bool m_needToUpdateGeometryOfAllDecendants : 1;
365 }; 366 };
366 367
367 } // namespace WebCore 368 } // namespace WebCore
368 369
369 #endif // CompositedLayerMapping_h 370 #endif // CompositedLayerMapping_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698