Changeset 217687 in webkit
- Timestamp:
- Jun 1, 2017 3:40:03 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r217686 r217687 1 2017-06-01 Simon Fraser <simon.fraser@apple.com> 2 3 Remove the redundant selectionOnly argument from RenderLayer::paintForegroundForFragments() 4 https://bugs.webkit.org/show_bug.cgi?id=172835 5 6 Reviewed by Zalan Bujtas. 7 8 The 'selectionOnly' state is already encoded in localPaintingInfo.paintBehavior so there's 9 no need to pass it separately. 10 11 * rendering/RenderLayer.cpp: 12 (WebCore::RenderLayer::paintLayerContents): 13 (WebCore::RenderLayer::paintForegroundForFragments): 14 * rendering/RenderLayer.h: 15 1 16 2017-06-01 Yoshiaki Jitsukawa <Yoshiaki.Jitsukawa@sony.com> 2 17 -
trunk/Source/WebCore/rendering/RenderLayer.cpp
r217296 r217687 4354 4354 bool selectionAndBackgroundsOnly = paintingInfo.paintBehavior & PaintBehaviorSelectionAndBackgroundsOnly; 4355 4355 bool selectionOnly = paintingInfo.paintBehavior & PaintBehaviorSelectionOnly; 4356 4356 4357 LayerFragments layerFragments; 4357 4358 RenderObject* subtreePaintRootForRenderer = nullptr; … … 4421 4422 if (shouldPaintContent) { 4422 4423 paintForegroundForFragments(layerFragments, currentContext, context, paintingInfo.paintDirtyRect, haveTransparency, 4423 localPaintingInfo, paintBehavior, subtreePaintRootForRenderer , selectionOnly || selectionAndBackgroundsOnly);4424 localPaintingInfo, paintBehavior, subtreePaintRootForRenderer); 4424 4425 } 4425 4426 } … … 4766 4767 void RenderLayer::paintForegroundForFragments(const LayerFragments& layerFragments, GraphicsContext& context, GraphicsContext& contextForTransparencyLayer, 4767 4768 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, const LayerPaintingInfo& localPaintingInfo, PaintBehavior paintBehavior, 4768 RenderObject* subtreePaintRootForRenderer , bool selectionOnly)4769 RenderObject* subtreePaintRootForRenderer) 4769 4770 { 4770 4771 // Begin transparency if we have something to paint. … … 4802 4803 // We have to loop through every fragment multiple times, since we have to repaint in each specific phase in order for 4803 4804 // interleaving of the fragments to work properly. 4805 bool selectionOnly = localPaintingInfo.paintBehavior & (PaintBehaviorSelectionAndBackgroundsOnly | PaintBehaviorSelectionOnly); 4804 4806 paintForegroundForFragmentsWithPhase(selectionOnly ? PaintPhaseSelection : PaintPhaseChildBlockBackgrounds, layerFragments, 4805 4807 context, localPaintingInfo, localPaintBehavior, subtreePaintRootForRenderer); -
trunk/Source/WebCore/rendering/RenderLayer.h
r216688 r217687 845 845 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, const LayerPaintingInfo&, PaintBehavior, RenderObject* paintingRootForRenderer); 846 846 void paintForegroundForFragments(const LayerFragments&, GraphicsContext&, GraphicsContext& transparencyLayerContext, 847 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, const LayerPaintingInfo&, PaintBehavior, RenderObject* paintingRootForRenderer, 848 bool selectionOnly); 847 const LayoutRect& transparencyPaintDirtyRect, bool haveTransparency, const LayerPaintingInfo&, PaintBehavior, RenderObject* paintingRootForRenderer); 849 848 void paintForegroundForFragmentsWithPhase(PaintPhase, const LayerFragments&, GraphicsContext&, const LayerPaintingInfo&, PaintBehavior, RenderObject* paintingRootForRenderer); 850 849 void paintOutlineForFragments(const LayerFragments&, GraphicsContext&, const LayerPaintingInfo&, PaintBehavior, RenderObject* paintingRootForRenderer);
Note: See TracChangeset
for help on using the changeset viewer.