iframes seem to occasionally doubly scale or scale incorrectly when pageScaleFactor...
authorfsamuel@chromium.org <fsamuel@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Oct 2011 21:09:24 +0000 (21:09 +0000)
committerfsamuel@chromium.org <fsamuel@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 27 Oct 2011 21:09:24 +0000 (21:09 +0000)
commitb5326d03622333a16770c18626d9551cda938cf5
treed3ed5fa4ef870188edf4c74767c4b5ad5ac8a41f
parentb8fff2b9ffa4fe307eef93a5283e43ac760698bc
iframes seem to occasionally doubly scale or scale incorrectly when pageScaleFactor != 1.0
https://bugs.webkit.org/show_bug.cgi?id=70552

Reviewed by Simon Fraser.

Source/WebCore:

Test: fast/frames/iframe-double-scale-contents.html

The iframe's document style was using the page's scale factor, rather than the frame's (1.0).
If the page scale factor was set after layout was complete, then this would have no impact because the iframe's document style and layout is not recomputed,
but if the page scale factor is set prior to creating and laying out the iframe, the iframe's content would be doubly scaled.

* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::styleForDocument):

LayoutTests:

* fast/frames/iframe-double-scale-contents-expected.png: Added.
* fast/frames/iframe-double-scale-contents-expected.txt: Added.
* fast/frames/iframe-double-scale-contents.html: Added.
* fast/frames/resources/iframe-content-scaling-bug-iframe.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@98637 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/frames/iframe-double-scale-contents-expected.png [new file with mode: 0644]
LayoutTests/fast/frames/iframe-double-scale-contents-expected.txt [new file with mode: 0644]
LayoutTests/fast/frames/iframe-double-scale-contents.html [new file with mode: 0644]
LayoutTests/fast/frames/resources/iframe-content-scaling-bug-iframe.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/css/CSSStyleSelector.cpp