we should eventually be able to get device pixel sized generated images.
Created attachment 227623 [details] Patch
Created attachment 227624 [details] Patch
Created attachment 228308 [details] Patch
Comment on attachment 228308 [details] Patch EWS
Created attachment 228310 [details] Patch
Comment on attachment 228310 [details] Patch EWS
Comment on attachment 228310 [details] Patch Clearing flags on attachment: 228310 Committed r166642: <http://trac.webkit.org/changeset/166642>
All reviewed patches have been landed. Closing bug.
Comment on attachment 228310 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=228310&action=review > Source/WebCore/platform/graphics/LayoutSize.h:203 > +inline FloatSize flooredForPainting(const LayoutSize& size, float pixelSnappingFactor) > +{ > +#if ENABLE(SUBPIXEL_LAYOUT) > + return FloatSize(floorToDevicePixel(size.width(), pixelSnappingFactor), floorToDevicePixel(size.height(), pixelSnappingFactor)); > +#else > + UNUSED_PARAM(pixelSnappingFactor); > + return FloatSize(point); > +#endif > +} It broke the WinCairo build, because there is no defined point identifier: 1>c:\projects\buildslave\win-cairo-release\build\source\webcore\platform\graphics\LayoutSize.h(201): error C2065: 'point' : undeclared identifier (C:\Projects\BuildSlave\win-cairo-release\build\WebKitBuild\Release_WinCairo\obj32\WebCore\DerivedSources\MathMLElementFactory.cpp) 1>c:\projects\buildslave\win-cairo-release\build\source\webcore\platform\graphics\LayoutSize.h(201): error C2065: 'point' : undeclared identifier (..\html\track\TextTrackCueGeneric.cpp) 1>c:\projects\buildslave\win-cairo-release\build\source\webcore\platform\graphics\LayoutSize.h(201): error C2065: 'point' : undeclared identifier (..\html\track\TrackListBase.cpp) 1>c:\projects\buildslave\win-cairo-release\build\source\webcore\platform\graphics\LayoutSize.h(201): error C2065: 'point' : undeclared identifier (..\html\track\VideoTrack.cpp) 1>c:\projects\buildslave\win-cairo-release\build\source\webcore\platform\graphics\LayoutSize.h(201): error C2065: 'point' : undeclared identifier (..\html\track\AudioTrack.cpp) 1>c:\projects\buildslave\win-cairo-release\build\source\webcore\platform\graphics\LayoutSize.h(201): error C2065: 'point' : undeclared identifier (C:\Projects\BuildSlave\win-cairo-release\build\WebKitBuild\Release_WinCairo\obj32\WebCore\DerivedSources\SVGElementFactory.cpp)
(In reply to comment #9) > (From update of attachment 228310 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=228310&action=review > > > Source/WebCore/platform/graphics/LayoutSize.h:203 > > +inline FloatSize flooredForPainting(const LayoutSize& size, float pixelSnappingFactor) > > +{ > > +#if ENABLE(SUBPIXEL_LAYOUT) > > + return FloatSize(floorToDevicePixel(size.width(), pixelSnappingFactor), floorToDevicePixel(size.height(), pixelSnappingFactor)); > > +#else > > + UNUSED_PARAM(pixelSnappingFactor); > > + return FloatSize(point); > > +#endif > > +} > > It broke the WinCairo build, because there is no defined point identifier: > > 1>c:\projects\buildslave\win-cairo-release\build\source\webcore\platform\graphics\LayoutSize.h(201): error C2065: 'point' : undeclared identifier (C:\Projects\BuildSlave\win-cairo-release\build\WebKitBuild\Release_WinCairo\obj32\WebCore\DerivedSources\MathMLElementFactory.cpp) > 1>c:\projects\buildslave\win-cairo-release\build\source\webcore\platform\graphics\LayoutSize.h(201): error C2065: 'point' : undeclared identifier (..\html\track\TextTrackCueGeneric.cpp) > 1>c:\projects\buildslave\win-cairo-release\build\source\webcore\platform\graphics\LayoutSize.h(201): error C2065: 'point' : undeclared identifier (..\html\track\TrackListBase.cpp) > 1>c:\projects\buildslave\win-cairo-release\build\source\webcore\platform\graphics\LayoutSize.h(201): error C2065: 'point' : undeclared identifier (..\html\track\VideoTrack.cpp) > 1>c:\projects\buildslave\win-cairo-release\build\source\webcore\platform\graphics\LayoutSize.h(201): error C2065: 'point' : undeclared identifier (..\html\track\AudioTrack.cpp) > 1>c:\projects\buildslave\win-cairo-release\build\source\webcore\platform\graphics\LayoutSize.h(201): error C2065: 'point' : undeclared identifier (C:\Projects\BuildSlave\win-cairo-release\build\WebKitBuild\Release_WinCairo\obj32\WebCore\DerivedSources\SVGElementFactory.cpp) Thanks, I'll fix it right away.
https://trac.webkit.org/changeset/166647