Fix Bug 14498: RenderContainer::positionForCoordinates contains an order of operation...
authoraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Jul 2007 23:54:22 +0000 (23:54 +0000)
committeraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Jul 2007 23:54:22 +0000 (23:54 +0000)
commit54a012cccd70aff1f88fd217308b8d51fd22be12
treee08df5020daebb8b1d1c22a875e3072417e96cdf
parentb4cb1c33352241faba1f0724fd2c48b532414954
Fix Bug 14498: RenderContainer::positionForCoordinates contains an order of operations error

WebCore:

        Fix Bug 14498: RenderContainer::positionForCoordinates contains an order of operations error
        http://bugs.webkit.org/show_bug.cgi?id=14498

        There were two bugs:
        1) xPos/yPos were flipped
        2) + binds tighter than ?:, so the order of operations was incorrect

        Reviewed by Darin.

        Test: fast/inline-block/14498-positionForCoordinates.html

        * rendering/RenderContainer.cpp:
        (WebCore::RenderContainer::positionForCoordinates):

LayoutTests:

        Test for Bug 14498: RenderContainer::positionForCoordinates contains an order of operations error
        http://bugs.webkit.org/show_bug.cgi?id=14498

        Reviewed by Darin.

        * fast/inline-block/14498-positionForCoordinates-expected.txt: Added.
        * fast/inline-block/14498-positionForCoordinates.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23938 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/inline-block/14498-positionForCoordinates-expected.txt [new file with mode: 0644]
LayoutTests/fast/inline-block/14498-positionForCoordinates.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/RenderContainer.cpp