A quick early-out for Region::contains() test
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Mar 2012 05:21:20 +0000 (05:21 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Mar 2012 05:21:20 +0000 (05:21 +0000)
commit278b33ba181e345c4c5489bb8449e2284b70406e
tree69fcf27f947e738e8c6fac4865bafdb69ffbbc20
parent4e05aa8686ee15e54d35fa3ee6e47fd3b17d6dfb
A quick early-out for Region::contains() test
https://bugs.webkit.org/show_bug.cgi?id=81625

Patch by Dana Jansens <danakj@chromium.org> on 2012-03-19
Reviewed by Anders Carlsson.

If the bounds of region B include a row/column that is outside the bounds of
region A, then region B contains a pixel within that row/column that is
outside of region A.

* platform/graphics/Region.cpp:
(WebCore::Region::contains):

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