Title: [121795] trunk/Source/WebCore
Revision
121795
Author
[email protected]
Date
2012-07-03 12:07:06 -0700 (Tue, 03 Jul 2012)

Log Message

Fix LayoutUnit usage in RenderImage::imageDimensionsChanged
https://bugs.webkit.org/show_bug.cgi?id=90173

Patch by Dominik Röttsches <[email protected]> on 2012-07-03
Reviewed by Eric Seidel.

The appropriate type should be used for storing width() and height() into local temporary variables.

No new tests, no change in behavior.

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

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (121794 => 121795)


--- trunk/Source/WebCore/ChangeLog	2012-07-03 19:04:04 UTC (rev 121794)
+++ trunk/Source/WebCore/ChangeLog	2012-07-03 19:07:06 UTC (rev 121795)
@@ -1,3 +1,17 @@
+2012-07-03  Dominik Röttsches  <[email protected]>
+
+        Fix LayoutUnit usage in RenderImage::imageDimensionsChanged
+        https://bugs.webkit.org/show_bug.cgi?id=90173
+
+        Reviewed by Eric Seidel.
+
+        The appropriate type should be used for storing width() and height() into local temporary variables.
+
+        No new tests, no change in behavior.
+
+        * rendering/RenderImage.cpp:
+        (WebCore::RenderImage::imageDimensionsChanged):
+
 2012-07-03  Sergio Villar Senin  <[email protected]>
 
         [TextureMapper] Typo in edge-distance anti-aliasing code

Modified: trunk/Source/WebCore/rendering/RenderImage.cpp (121794 => 121795)


--- trunk/Source/WebCore/rendering/RenderImage.cpp	2012-07-03 19:04:04 UTC (rev 121794)
+++ trunk/Source/WebCore/rendering/RenderImage.cpp	2012-07-03 19:07:06 UTC (rev 121795)
@@ -219,8 +219,8 @@
     bool shouldRepaint = true;
     if (intrinsicSizeChanged) {
         // lets see if we need to relayout at all..
-        int oldwidth = width();
-        int oldheight = height();
+        LayoutUnit oldwidth = width();
+        LayoutUnit oldheight = height();
         if (!preferredLogicalWidthsDirty())
             setPreferredLogicalWidthsDirty(true);
         computeLogicalWidth();
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to