Changeset 193390 in webkit
- Timestamp:
- Dec 3, 2015 4:49:48 PM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r193389 r193390 1 2015-12-03 Said Abou-Hallawa <sabouhallawa@apple.com> 2 3 Remove the use of GraphicsContextStateSaver from RenderLayer::paintLayerByApplyingTransform 4 https://bugs.webkit.org/show_bug.cgi?id=151829 5 6 Reviewed by Simon Fraser. 7 8 Set the CTM of the GraphicsContext to its original value before changing 9 it. This is a lot cheaper than using GraphicsContextStateSaver to save the 10 whole state of the GraphicsContext and restore it back; 11 12 * rendering/RenderLayer.cpp: 13 (WebCore::RenderLayer::paintLayerByApplyingTransform): 14 1 15 2015-12-03 Eric Carlson <eric.carlson@apple.com> 2 16 -
trunk/Source/WebCore/rendering/RenderLayer.cpp
r192900 r193390 4406 4406 transform.translateRight(devicePixelSnappedOffsetForThisLayer.width(), devicePixelSnappedOffsetForThisLayer.height()); 4407 4407 // Apply the transform. 4408 GraphicsContextStateSaver stateSaver(context);4408 AffineTransform oldTransfrom = context.getCTM(); 4409 4409 context.concatCTM(transform.toAffineTransform()); 4410 4410 … … 4414 4414 paintingInfo.paintBehavior, adjustedSubpixelAccumulation, paintingInfo.subtreePaintRoot, paintingInfo.overlapTestRequests); 4415 4415 paintLayerContentsAndReflection(context, transformedPaintingInfo, paintFlags); 4416 context.setCTM(oldTransfrom); 4416 4417 } 4417 4418
Note: See TracChangeset
for help on using the changeset viewer.