https://bugs.webkit.org/show_bug.cgi?id=67739
authorhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Sep 2011 00:50:24 +0000 (00:50 +0000)
committerhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Sep 2011 00:50:24 +0000 (00:50 +0000)
commit875584509e7eae86070a684e6316f39a1276bb0e
tree6f4dfdc97699ef9f6add3f0e4c06c7e01c09be9d
parent396f5e117706293c333debe28cb6003ef2fbca97
https://bugs.webkit.org/show_bug.cgi?id=67739

adjustRectForColumns is O(# of columns) when it can be O(1). Fix the slow performance of this
function by removing the loop and just computing the start and end column for a repaint rect
and uniting everything in between.

Reviewed by Dan Bernstein.

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::adjustRectForColumns):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@94737 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBlock.cpp