Plugin snapshot label should take device resolution and inset into account
authordino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Jan 2013 02:01:02 +0000 (02:01 +0000)
committerdino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Jan 2013 02:01:02 +0000 (02:01 +0000)
commit96ff95c85503dba722ed72aaf577a7296fea8fc0
tree86b13fcbd80033d50cb9ccff573677c5b00cc5e2
parent0027e37c40b5c06cc7e73080a6615f3a309a8e0d
Plugin snapshot label should take device resolution and inset into account
https://bugs.webkit.org/show_bug.cgi?id=106619

Reviewed by Simon Fraser.

* rendering/RenderSnapshottedPlugIn.cpp:
(WebCore::RenderSnapshottedPlugIn::paintLabel): Take into account the inset in the label image.
(WebCore::RenderSnapshottedPlugIn::tryToFitStartLabel): Look at the page's device scale, and adjust the label image accordingly.

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