Very flashy scrolling on http://quellish.tumblr.com page
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Mar 2016 20:23:23 +0000 (20:23 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Mar 2016 20:23:23 +0000 (20:23 +0000)
commitf08fc80f7a68ddae1df2c22ea42eab840dec32d5
treee54afb210a85fb54dbe3f01f74242cb826c965ad
parent7839c7b2d6db30022e560b117ec86a384e8e4c9e
Very flashy scrolling on quellish.tumblr.com page
https://bugs.webkit.org/show_bug.cgi?id=155728
rdar://problem/22299375

Reviewed by Zalan Bujtas.

http://quellish.tumblr.com/post/126712999812/how-on-earth-the-facebook-ios-application-is-so
has many elements that are nested inside elements with non-equal corner radius clipping.
This requires building bezier paths for the rounded-rect clip which is expensive.

For many rows of the table, we can avoid the rounded-rect clipping because the intersection
of the paintDirtyRect and the clip is actually rectangular.

* platform/graphics/FloatRoundedRect.cpp:
(WebCore::FloatRoundedRect::intersectionIsRectangular):
* platform/graphics/FloatRoundedRect.h:
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::clipToRect):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@198498 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/FloatRoundedRect.cpp
Source/WebCore/platform/graphics/FloatRoundedRect.h
Source/WebCore/rendering/RenderLayer.cpp