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

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

Issue 1878253003: Allow explicit conversion operators and implement WTF::OwnPtr::operator bool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 8 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 bool updateGraphicsLayerConfiguration(); 86 bool updateGraphicsLayerConfiguration();
87 void updateGraphicsLayerGeometry(const PaintLayer* compositingContainer, con st PaintLayer* compositingStackingContext, Vector<PaintLayer*>& layersNeedingPai ntInvalidation); 87 void updateGraphicsLayerGeometry(const PaintLayer* compositingContainer, con st PaintLayer* compositingStackingContext, Vector<PaintLayer*>& layersNeedingPai ntInvalidation);
88 88
89 // Update whether layer needs blending. 89 // Update whether layer needs blending.
90 void updateContentsOpaque(); 90 void updateContentsOpaque();
91 91
92 GraphicsLayer* mainGraphicsLayer() const { return m_graphicsLayer.get(); } 92 GraphicsLayer* mainGraphicsLayer() const { return m_graphicsLayer.get(); }
93 93
94 // Layer to clip children 94 // Layer to clip children
95 bool hasClippingLayer() const { return m_childContainmentLayer; } 95 bool hasClippingLayer() const { return m_childContainmentLayer.get(); }
96 GraphicsLayer* clippingLayer() const { return m_childContainmentLayer.get(); } 96 GraphicsLayer* clippingLayer() const { return m_childContainmentLayer.get(); }
97 97
98 // Layer to get clipped by ancestor 98 // Layer to get clipped by ancestor
99 bool hasAncestorClippingLayer() const { return m_ancestorClippingLayer; } 99 bool hasAncestorClippingLayer() const { return m_ancestorClippingLayer.get() ; }
100 GraphicsLayer* ancestorClippingLayer() const { return m_ancestorClippingLaye r.get(); } 100 GraphicsLayer* ancestorClippingLayer() const { return m_ancestorClippingLaye r.get(); }
101 101
102 GraphicsLayer* foregroundLayer() const { return m_foregroundLayer.get(); } 102 GraphicsLayer* foregroundLayer() const { return m_foregroundLayer.get(); }
103 103
104 GraphicsLayer* backgroundLayer() const { return m_backgroundLayer.get(); } 104 GraphicsLayer* backgroundLayer() const { return m_backgroundLayer.get(); }
105 bool backgroundLayerPaintsFixedRootBackground() const { return m_backgroundL ayerPaintsFixedRootBackground; } 105 bool backgroundLayerPaintsFixedRootBackground() const { return m_backgroundL ayerPaintsFixedRootBackground; }
106 106
107 bool hasScrollingLayer() const { return m_scrollingLayer; } 107 bool hasScrollingLayer() const { return m_scrollingLayer.get(); }
108 GraphicsLayer* scrollingLayer() const { return m_scrollingLayer.get(); } 108 GraphicsLayer* scrollingLayer() const { return m_scrollingLayer.get(); }
109 GraphicsLayer* scrollingContentsLayer() const { return m_scrollingContentsLa yer.get(); } 109 GraphicsLayer* scrollingContentsLayer() const { return m_scrollingContentsLa yer.get(); }
110 110
111 bool hasMaskLayer() const { return m_maskLayer; } 111 bool hasMaskLayer() const { return m_maskLayer.get(); }
112 GraphicsLayer* maskLayer() const { return m_maskLayer.get(); } 112 GraphicsLayer* maskLayer() const { return m_maskLayer.get(); }
113 113
114 bool hasChildClippingMaskLayer() const { return m_childClippingMaskLayer; } 114 bool hasChildClippingMaskLayer() const { return m_childClippingMaskLayer.get (); }
115 GraphicsLayer* childClippingMaskLayer() const { return m_childClippingMaskLa yer.get(); } 115 GraphicsLayer* childClippingMaskLayer() const { return m_childClippingMaskLa yer.get(); }
116 116
117 GraphicsLayer* parentForSublayers() const; 117 GraphicsLayer* parentForSublayers() const;
118 GraphicsLayer* childForSuperlayers() const; 118 GraphicsLayer* childForSuperlayers() const;
119 void setSublayers(const GraphicsLayerVector&); 119 void setSublayers(const GraphicsLayerVector&);
120 120
121 bool hasChildTransformLayer() const { return m_childTransformLayer; } 121 bool hasChildTransformLayer() const { return m_childTransformLayer.get(); }
122 GraphicsLayer* childTransformLayer() const { return m_childTransformLayer.ge t(); } 122 GraphicsLayer* childTransformLayer() const { return m_childTransformLayer.ge t(); }
123 123
124 GraphicsLayer* squashingContainmentLayer() const { return m_squashingContain mentLayer.get(); } 124 GraphicsLayer* squashingContainmentLayer() const { return m_squashingContain mentLayer.get(); }
125 GraphicsLayer* squashingLayer() const { return m_squashingLayer.get(); } 125 GraphicsLayer* squashingLayer() const { return m_squashingLayer.get(); }
126 126
127 void setSquashingContentsNeedDisplay(); 127 void setSquashingContentsNeedDisplay();
128 void setContentsNeedDisplay(); 128 void setContentsNeedDisplay();
129 // LayoutRect is in the coordinate space of the layer's layout object. 129 // LayoutRect is in the coordinate space of the layer's layout object.
130 void setContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidationReason , const DisplayItemClient&); 130 void setContentsNeedDisplayInRect(const LayoutRect&, PaintInvalidationReason , const DisplayItemClient&);
131 131
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 445
446 unsigned m_backgroundLayerPaintsFixedRootBackground : 1; 446 unsigned m_backgroundLayerPaintsFixedRootBackground : 1;
447 unsigned m_scrollingContentsAreEmpty : 1; 447 unsigned m_scrollingContentsAreEmpty : 1;
448 448
449 friend class CompositedLayerMappingTest; 449 friend class CompositedLayerMappingTest;
450 }; 450 };
451 451
452 } // namespace blink 452 } // namespace blink
453 453
454 #endif // CompositedLayerMapping_h 454 #endif // CompositedLayerMapping_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.h ('k') | third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698