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

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

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 181
182 virtual String debugName(const GraphicsLayer*) override; 182 virtual String debugName(const GraphicsLayer*) override;
183 183
184 LayoutSize contentOffsetInCompositingLayer() const; 184 LayoutSize contentOffsetInCompositingLayer() const;
185 185
186 LayoutPoint squashingOffsetFromTransformedAncestor() 186 LayoutPoint squashingOffsetFromTransformedAncestor()
187 { 187 {
188 return m_squashingLayerOffsetFromTransformedAncestor; 188 return m_squashingLayerOffsetFromTransformedAncestor;
189 } 189 }
190 190
191 // If there is a squashed layer painting into this CLM that is an ancestor o f the given RenderObject, return it. Otherwise return 0. 191 // If there is a squashed layer painting into this CLM that is an ancestor o f the given LayoutObject, return it. Otherwise return 0.
192 const GraphicsLayerPaintInfo* containingSquashedLayer(const RenderObject*, u nsigned maxSquashedLayerIndex); 192 const GraphicsLayerPaintInfo* containingSquashedLayer(const LayoutObject*, u nsigned maxSquashedLayerIndex);
193 193
194 void updateScrollingBlockSelection(); 194 void updateScrollingBlockSelection();
195 195
196 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi s); } 196 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi s); }
197 197
198 private: 198 private:
199 static const GraphicsLayerPaintInfo* containingSquashedLayer(const RenderObj ect*, const Vector<GraphicsLayerPaintInfo>& layers, unsigned maxSquashedLayerIn dex); 199 static const GraphicsLayerPaintInfo* containingSquashedLayer(const LayoutObj ect*, const Vector<GraphicsLayerPaintInfo>& layers, unsigned maxSquashedLayerIn dex);
200 200
201 // Helper methods to updateGraphicsLayerGeometry: 201 // Helper methods to updateGraphicsLayerGeometry:
202 void computeGraphicsLayerParentLocation(const Layer* compositingContainer, c onst IntRect& ancestorCompositingBounds, IntPoint& graphicsLayerParentLocation); 202 void computeGraphicsLayerParentLocation(const Layer* compositingContainer, c onst IntRect& ancestorCompositingBounds, IntPoint& graphicsLayerParentLocation);
203 void updateSquashingLayerGeometry(const LayoutPoint& offsetFromCompositedAnc estor, const IntPoint& graphicsLayerParentLocation, const Layer& referenceLayer, Vector<GraphicsLayerPaintInfo>& layers, GraphicsLayer*, LayoutPoint* offsetFrom TransformedAncestor, Vector<Layer*>& layersNeedingPaintInvalidation); 203 void updateSquashingLayerGeometry(const LayoutPoint& offsetFromCompositedAnc estor, const IntPoint& graphicsLayerParentLocation, const Layer& referenceLayer, Vector<GraphicsLayerPaintInfo>& layers, GraphicsLayer*, LayoutPoint* offsetFrom TransformedAncestor, Vector<Layer*>& layersNeedingPaintInvalidation);
204 void updateMainGraphicsLayerGeometry(const IntRect& relativeCompositingBound s, const IntRect& localCompositingBounds, const IntPoint& graphicsLayerParentLoc ation); 204 void updateMainGraphicsLayerGeometry(const IntRect& relativeCompositingBound s, const IntRect& localCompositingBounds, const IntPoint& graphicsLayerParentLoc ation);
205 void updateAncestorClippingLayerGeometry(const Layer* compositingContainer, const IntPoint& snappedOffsetFromCompositedAncestor, IntPoint& graphicsLayerPare ntLocation); 205 void updateAncestorClippingLayerGeometry(const Layer* compositingContainer, const IntPoint& snappedOffsetFromCompositedAncestor, IntPoint& graphicsLayerPare ntLocation);
206 void updateOverflowControlsHostLayerGeometry(const Layer* compositingStackin gContext); 206 void updateOverflowControlsHostLayerGeometry(const Layer* compositingStackin gContext);
207 void updateChildContainmentLayerGeometry(const IntRect& clippingBox, const I ntRect& localCompositingBounds); 207 void updateChildContainmentLayerGeometry(const IntRect& clippingBox, const I ntRect& localCompositingBounds);
208 void updateChildTransformLayerGeometry(); 208 void updateChildTransformLayerGeometry();
209 void updateMaskLayerGeometry(); 209 void updateMaskLayerGeometry();
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 unsigned m_pendingUpdateScope : 2; 412 unsigned m_pendingUpdateScope : 2;
413 unsigned m_isMainFrameRenderViewLayer : 1; 413 unsigned m_isMainFrameRenderViewLayer : 1;
414 414
415 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; 415 unsigned m_backgroundLayerPaintsFixedRootBackground : 1;
416 unsigned m_scrollingContentsAreEmpty : 1; 416 unsigned m_scrollingContentsAreEmpty : 1;
417 }; 417 };
418 418
419 } // namespace blink 419 } // namespace blink
420 420
421 #endif // CompositedLayerMapping_h 421 #endif // CompositedLayerMapping_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutTreeAsText.cpp ('k') | Source/core/layout/compositing/CompositedLayerMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698