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

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

Issue 2363953002: Fix placement of overlay scrollbars on high DPI with box shadow. (Closed)
Patch Set: Created 4 years, 2 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
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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // Paints the scrollbar part associated with the given graphics layer into t he given context. 238 // Paints the scrollbar part associated with the given graphics layer into t he given context.
239 void paintScrollableArea(const GraphicsLayer*, GraphicsContext&, const IntRe ct& interestRect) const; 239 void paintScrollableArea(const GraphicsLayer*, GraphicsContext&, const IntRe ct& interestRect) const;
240 // Returns whether the given layer is part of the scrollable area, if any, a ssociated with this mapping. 240 // Returns whether the given layer is part of the scrollable area, if any, a ssociated with this mapping.
241 bool isScrollableAreaLayer(const GraphicsLayer*) const; 241 bool isScrollableAreaLayer(const GraphicsLayer*) const;
242 242
243 // Helper methods to updateGraphicsLayerGeometry: 243 // Helper methods to updateGraphicsLayerGeometry:
244 void computeGraphicsLayerParentLocation(const PaintLayer* compositingContain er, const IntRect& ancestorCompositingBounds, IntPoint& graphicsLayerParentLocat ion); 244 void computeGraphicsLayerParentLocation(const PaintLayer* compositingContain er, const IntRect& ancestorCompositingBounds, IntPoint& graphicsLayerParentLocat ion);
245 void updateSquashingLayerGeometry(const IntPoint& graphicsLayerParentLocatio n, const PaintLayer* compositingContainer, Vector<GraphicsLayerPaintInfo>& layer s, GraphicsLayer*, LayoutPoint* offsetFromTransformedAncestor, Vector<PaintLayer *>& layersNeedingPaintInvalidation); 245 void updateSquashingLayerGeometry(const IntPoint& graphicsLayerParentLocatio n, const PaintLayer* compositingContainer, Vector<GraphicsLayerPaintInfo>& layer s, GraphicsLayer*, LayoutPoint* offsetFromTransformedAncestor, Vector<PaintLayer *>& layersNeedingPaintInvalidation);
246 void updateMainGraphicsLayerGeometry(const IntRect& relativeCompositingBound s, const IntRect& localCompositingBounds, const IntPoint& graphicsLayerParentLoc ation); 246 void updateMainGraphicsLayerGeometry(const IntRect& relativeCompositingBound s, const IntRect& localCompositingBounds, const IntPoint& graphicsLayerParentLoc ation);
247 void updateAncestorClippingLayerGeometry(const PaintLayer* compositingContai ner, const IntPoint& snappedOffsetFromCompositedAncestor, IntPoint& graphicsLaye rParentLocation); 247 void updateAncestorClippingLayerGeometry(const PaintLayer* compositingContai ner, const IntPoint& snappedOffsetFromCompositedAncestor, IntPoint& graphicsLaye rParentLocation);
248 void updateOverflowControlsHostLayerGeometry(const PaintLayer* compositingSt ackingContext, const PaintLayer* compositingContainer); 248 void updateOverflowControlsHostLayerGeometry(const PaintLayer* compositingSt ackingContext, const PaintLayer* compositingContainer, IntPoint graphicsLayerPar entLocation);
249 void updateChildContainmentLayerGeometry(const IntRect& clippingBox, const I ntRect& localCompositingBounds); 249 void updateChildContainmentLayerGeometry(const IntRect& clippingBox, const I ntRect& localCompositingBounds);
250 void updateChildTransformLayerGeometry(); 250 void updateChildTransformLayerGeometry();
251 void updateMaskLayerGeometry(); 251 void updateMaskLayerGeometry();
252 void updateTransformGeometry(const IntPoint& snappedOffsetFromCompositedAnce stor, const IntRect& relativeCompositingBounds); 252 void updateTransformGeometry(const IntPoint& snappedOffsetFromCompositedAnce stor, const IntRect& relativeCompositingBounds);
253 void updateForegroundLayerGeometry(const FloatSize& relativeCompositingBound sSize, const IntRect& clippingBox); 253 void updateForegroundLayerGeometry(const FloatSize& relativeCompositingBound sSize, const IntRect& clippingBox);
254 void updateBackgroundLayerGeometry(const FloatSize& relativeCompositingBound sSize); 254 void updateBackgroundLayerGeometry(const FloatSize& relativeCompositingBound sSize);
255 void updateReflectionLayerGeometry(Vector<PaintLayer*>& layersNeedingPaintIn validation); 255 void updateReflectionLayerGeometry(Vector<PaintLayer*>& layersNeedingPaintIn validation);
256 void updateScrollingLayerGeometry(const IntRect& localCompositingBounds); 256 void updateScrollingLayerGeometry(const IntRect& localCompositingBounds);
257 void updateChildClippingMaskLayerGeometry(); 257 void updateChildClippingMaskLayerGeometry();
258 258
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 468
469 // Keep track of whether the background is painted onto the scrolling conten ts layer for invalidations. 469 // Keep track of whether the background is painted onto the scrolling conten ts layer for invalidations.
470 unsigned m_backgroundPaintsOntoScrollingContentsLayer : 1; 470 unsigned m_backgroundPaintsOntoScrollingContentsLayer : 1;
471 471
472 friend class CompositedLayerMappingTest; 472 friend class CompositedLayerMappingTest;
473 }; 473 };
474 474
475 } // namespace blink 475 } // namespace blink
476 476
477 #endif // CompositedLayerMapping_h 477 #endif // CompositedLayerMapping_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698