[webkit-dev] Determining the device pixel density of target device

AgentX pulkit.mehra.001 at gmail.com
Tue Mar 4 20:59:10 PST 2014

I was working with *responsive images* in Webkit and I came across this
*‘deviceScaleFactor’* attribute with determines the pixel density on the
target device.
I was unable to find out how does Webkit determine it, that is which
functions does it use and where can I find them in the Source Code? All I
was able to find was that it used a function *‘page->deviceScaleFactor()’*
which somehow returned the scale factor but I was unable to find the exact
function which actually computes the scale factor.

Any help here would be highly appreciated!!

View this message in context: http://mac-os-forge.2317878.n4.nabble.com/Determining-the-device-pixel-density-of-target-device-tp245535.html
Sent from the Webkit mailing list archive at Nabble.com.

More information about the webkit-dev mailing list