2010-08-04 Antonio Gomes <tonikitoo@webkit.org>
authorAntonio Gomes <tonikitoo@webkit.org>
Thu, 5 Aug 2010 03:27:56 +0000 (03:27 +0000)
committerSimon Hausmann <simon.hausmann@nokia.com>
Wed, 11 Aug 2010 14:49:30 +0000 (16:49 +0200)
commit40071b732cbe2fe02f738c04d01da6e35ba84bac
tree046ca49f40a10ee3d945625c78b0716a8625b146
parent4395039b9d85191e4d00e41fb4099a0b94817b33
2010-08-04  Antonio Gomes  <tonikitoo@webkit.org>

        Reviewed by Daniel Bates.

        Remove superfluous non-negative checks in HitTestResult:padding{Width|Height}
        https://bugs.webkit.org/show_bug.cgi?id=43534

        As pointed out by Steve Block in https://bugs.webkit.org/show_bug.cgi?id=40197#c54 ,
        the non-negative checks present in both paddingWidth and paddingHeight methods of
        HitTestResults class are superflous, after we changed the rect based hit testing logic
        of invalid padding from IntSize(-1, -1) to IntSize(0, 0). Patch addresses this issue.

        No new tests needed.

        * rendering/HitTestResult.h:
        (WebCore::HitTestResult::paddingWidth):
        (WebCore::HitTestResult::paddingHeight):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64705 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/rendering/HitTestResult.h