No subject


Fri Mar 7 15:32:22 PST 2014


No change in functionality.

 * platform/graphics/LayoutSize.h:
(WebCore::floorSizeToDevicePixels):
(WebCore::flooredForPainting): Deleted.
* rendering/style/StyleGeneratedImage.cpp:
(WebCore::StyleGeneratedImage::computeIntrinsicDimensions):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href=3D"#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeL=
og</a></li>
<li><a href=3D"#trunkSourceWebCoreplatformgraphicsLayoutSizeh">trunk/Sour=
ce/WebCore/platform/graphics/LayoutSize.h</a></li>
<li><a href=3D"#trunkSourceWebCorerenderingstyleStyleGeneratedImagecpp">t=
runk/Source/WebCore/rendering/style/StyleGeneratedImage.cpp</a></li>
</ul>

</div>
<div id=3D"patch">
<h3>Diff</h3>
<a id=3D"trunkSourceWebCoreChangeLog"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (1730=
36 =3D> 173037)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/ChangeLog	2014-08-28 00:03:=
25 UTC (rev 173036)
+++ trunk/Source/WebCore/ChangeLog	2014-08-28 00:04:24 UTC (rev 173037)
</span><span class=3D"lines">@@ -1,3 +1,20 @@
</span><ins>+2014-08-27  Zalan Bujtas  &lt;zalan at apple.com&gt;
+
+        Subpixel layout: Rename LayoutSize's device pixel snapping funct=
ions.
+        https://bugs.webkit.org/show_bug.cgi?id=3D136310
+
+        Reviewed by Simon Fraser.
+
+        From *edForPainting() to *SizeToDevicePixels() (* =3D floor/roun=
d/ceil)
+
+        No change in functionality.
+
+         * platform/graphics/LayoutSize.h:
+        (WebCore::floorSizeToDevicePixels):
+        (WebCore::flooredForPainting): Deleted.
+        * rendering/style/StyleGeneratedImage.cpp:
+        (WebCore::StyleGeneratedImage::computeIntrinsicDimensions):
+
</ins><span class=3D"cx"> 2014-08-27  Brian J. Burg  &lt;burg at cs.washingt=
on.edu&gt;
</span><span class=3D"cx">=20
</span><span class=3D"cx">         Enums in ScrollTypes and PlatformWheel=
Event should not use uint64_t storage
</span></span></pre></div>
<a id=3D"trunkSourceWebCoreplatformgraphicsLayoutSizeh"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/platform/graphi=
cs/LayoutSize.h (173036 =3D> 173037)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/platform/graphics/LayoutSiz=
e.h	2014-08-28 00:03:25 UTC (rev 173036)
+++ trunk/Source/WebCore/platform/graphics/LayoutSize.h	2014-08-28 00:04:=
24 UTC (rev 173037)
</span><span class=3D"lines">@@ -183,7 +183,7 @@
</span><span class=3D"cx">     return IntSize(s.width().round(), s.height=
().round());
</span><span class=3D"cx"> }
</span><span class=3D"cx">=20
</span><del>-inline FloatSize flooredForPainting(const LayoutSize&amp; si=
ze, float pixelSnappingFactor)
</del><ins>+inline FloatSize floorSizeToDevicePixels(const LayoutSize&amp=
; size, float pixelSnappingFactor)
</ins><span class=3D"cx"> {
</span><span class=3D"cx">     return FloatSize(floorToDevicePixel(size.w=
idth(), pixelSnappingFactor), floorToDevicePixel(size.height(), pixelSnap=
pingFactor));
</span><span class=3D"cx"> }
</span></span></pre></div>
<a id=3D"trunkSourceWebCorerenderingstyleStyleGeneratedImagecpp"></a>
<div class=3D"modfile"><h4>Modified: trunk/Source/WebCore/rendering/style=
/StyleGeneratedImage.cpp (173036 =3D> 173037)</h4>
<pre class=3D"diff"><span>
<span class=3D"info">--- trunk/Source/WebCore/rendering/style/StyleGenera=
tedImage.cpp	2014-08-28 00:03:25 UTC (rev 173036)
+++ trunk/Source/WebCore/rendering/style/StyleGeneratedImage.cpp	2014-08-=
28 00:04:24 UTC (rev 173037)
</span><span class=3D"lines">@@ -69,7 +69,7 @@
</span><span class=3D"cx"> void StyleGeneratedImage::computeIntrinsicDime=
nsions(const RenderElement* renderer, Length&amp; intrinsicWidth, Length&=
amp; intrinsicHeight, FloatSize&amp; intrinsicRatio)
</span><span class=3D"cx"> {
</span><span class=3D"cx">     // At a zoom level of 1 the image is guara=
nteed to have a device pixel size.
</span><del>-    FloatSize size =3D flooredForPainting(LayoutSize(imageSi=
ze(renderer, 1)), renderer ? renderer-&gt;document().deviceScaleFactor() =
: 1);
</del><ins>+    FloatSize size =3D floorSizeToDevicePixels(LayoutSize(ima=
geSize(renderer, 1)), renderer ? renderer-&gt;document().deviceScaleFacto=
r() : 1);
</ins><span class=3D"cx">     intrinsicWidth =3D Length(size.width(), Fix=
ed);
</span><span class=3D"cx">     intrinsicHeight =3D Length(size.height(), =
Fixed);
</span><span class=3D"cx">     intrinsicRatio =3D size;
</span></span></pre>
</div>
</div>

</body>
</html>


More information about the webkit-changes mailing list