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

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

Issue 1425593007: Separate display item clients for negative and normal/positive z-order children (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Struct DisplayItemClient Created 5 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
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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 LayoutPoint squashingOffsetFromTransformedAncestor() 201 LayoutPoint squashingOffsetFromTransformedAncestor()
202 { 202 {
203 return m_squashingLayerOffsetFromTransformedAncestor; 203 return m_squashingLayerOffsetFromTransformedAncestor;
204 } 204 }
205 205
206 // If there is a squashed layer painting into this CLM that is an ancestor o f the given LayoutObject, return it. Otherwise return nullptr. 206 // If there is a squashed layer painting into this CLM that is an ancestor o f the given LayoutObject, return it. Otherwise return nullptr.
207 const GraphicsLayerPaintInfo* containingSquashedLayer(const LayoutObject*, u nsigned maxSquashedLayerIndex); 207 const GraphicsLayerPaintInfo* containingSquashedLayer(const LayoutObject*, u nsigned maxSquashedLayerIndex);
208 208
209 void updateScrollingBlockSelection(); 209 void updateScrollingBlockSelection();
210 210
211 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi s); } 211 DisplayItemClient displayItemClient() const { return DisplayItemClient(this) ; }
212 String debugName() const { return "CompositedLayerMapping for " + owningLaye r().debugName(); } 212 String debugName() const { return "CompositedLayerMapping for " + owningLaye r().debugName(); }
213 213
214 private: 214 private:
215 static IntRect computeInterestRect(const GraphicsLayer*, LayoutObject* ownin gLayoutObject); 215 static IntRect computeInterestRect(const GraphicsLayer*, LayoutObject* ownin gLayoutObject);
216 static bool interestRectChangedEnoughToRepaint(const IntRect& previousIntere stRect, const IntRect& newInterestRect, const IntSize& layerSize); 216 static bool interestRectChangedEnoughToRepaint(const IntRect& previousIntere stRect, const IntRect& newInterestRect, const IntSize& layerSize);
217 217
218 static const GraphicsLayerPaintInfo* containingSquashedLayer(const LayoutObj ect*, const Vector<GraphicsLayerPaintInfo>& layers, unsigned maxSquashedLayerIn dex); 218 static const GraphicsLayerPaintInfo* containingSquashedLayer(const LayoutObj ect*, const Vector<GraphicsLayerPaintInfo>& layers, unsigned maxSquashedLayerIn dex);
219 219
220 // Helper methods to updateGraphicsLayerGeometry: 220 // Helper methods to updateGraphicsLayerGeometry:
221 void computeGraphicsLayerParentLocation(const PaintLayer* compositingContain er, const IntRect& ancestorCompositingBounds, IntPoint& graphicsLayerParentLocat ion); 221 void computeGraphicsLayerParentLocation(const PaintLayer* compositingContain er, const IntRect& ancestorCompositingBounds, IntPoint& graphicsLayerParentLocat ion);
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 unsigned m_scrollingContentsAreEmpty : 1; 442 unsigned m_scrollingContentsAreEmpty : 1;
443 443
444 mutable IntRect m_previousPaintInterestRect; 444 mutable IntRect m_previousPaintInterestRect;
445 445
446 friend class CompositedLayerMappingTest; 446 friend class CompositedLayerMappingTest;
447 }; 447 };
448 448
449 } // namespace blink 449 } // namespace blink
450 450
451 #endif // CompositedLayerMapping_h 451 #endif // CompositedLayerMapping_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/layout/line/InlineBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698