<rdar://problem/12544626> [cg] RenderBlock::selectionGaps() is extremely slow when...
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Oct 2012 00:04:53 +0000 (00:04 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Oct 2012 00:04:53 +0000 (00:04 +0000)
commitf9debffa564ff5c9bbd60b982e46a0bd51a1c1bc
treecd55b86df1287bedb5479fa4544c0aed1f508617
parent64e2fd7f7bee2ebe9533ce1006c5de3b60d333fd
<rdar://problem/12544626> [cg] RenderBlock::selectionGaps() is extremely slow when there are many floats
https://bugs.webkit.org/show_bug.cgi?id=100413

Reviewed by Anders Carlsson.

RenderBlock::selectionGaps() calls GraphicsContext::clipOut(const IntRect&) for each float.
Sped up the Core Graphics implementation of this function considerably by removing an
unnecessary call to CGContextGetClipBoundingBox.

* platform/graphics/cg/GraphicsContextCG.cpp:
(WebCore::GraphicsContext::clipOut): Changed to use CGRectInfinite rather than the bounding
box of the current clip.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@132545 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp