Changeset 154400 in webkit for trunk/Source/WebCore/rendering/RenderScrollbarPart.cpp
- Timestamp:
- Aug 21, 2013, 11:04:42 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderScrollbarPart.cpp
r148536 r154400 182 182 setHeight(rect.height()); 183 183 184 if (graphicsContext->paintingDisabled()) 185 return; 186 184 if (graphicsContext->paintingDisabled() || !style()->opacity()) 185 return; 186 187 // We don't use RenderLayers for scrollbar parts, so we need to handle opacity here. 188 // Opacity for ScrollbarBGPart is handled by RenderScrollbarTheme::willPaintScrollbar(). 189 bool needsTransparencyLayer = m_part != ScrollbarBGPart && style()->opacity() < 1; 190 if (needsTransparencyLayer) { 191 graphicsContext->save(); 192 graphicsContext->clip(rect); 193 graphicsContext->beginTransparencyLayer(style()->opacity()); 194 } 195 187 196 // Now do the paint. 188 197 PaintInfo paintInfo(graphicsContext, pixelSnappedIntRect(rect), PaintPhaseBlockBackground, PaintBehaviorNormal); … … 196 205 paintInfo.phase = PaintPhaseOutline; 197 206 paint(paintInfo, paintOffset); 207 208 if (needsTransparencyLayer) { 209 graphicsContext->endTransparencyLayer(); 210 graphicsContext->restore(); 211 } 198 212 } 199 213
Note:
See TracChangeset
for help on using the changeset viewer.