Use computeLogical* methods instead of updateLogical* methods in RenderImage
authortony@chromium.org <tony@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Oct 2012 20:38:54 +0000 (20:38 +0000)
committertony@chromium.org <tony@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Oct 2012 20:38:54 +0000 (20:38 +0000)
commit95762a0f3d8f0aaeb0b3f7a667c57058d75fc158
tree23edcb1ebce7dd30235a2d50b1a6228454dd4748
parent637b6776c5c5ddab2c0d79128fe971f4215fdd86
Use computeLogical* methods instead of updateLogical* methods in RenderImage
https://bugs.webkit.org/show_bug.cgi?id=98802

Reviewed by Eric Seidel.

We were storing the old values of width/height, calling updateLogical{Width,Height}, then restoring
the old values.  Instead, use the computeLogical{Width,Height} methods so we don't have to overwrite
the current values.

No new tests, this is just a refactoring.

* rendering/RenderImage.cpp:
(WebCore::RenderImage::imageDimensionsChanged):

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