Changeset 98637 in webkit


Ignore:
Timestamp:
Oct 27, 2011, 2:09:24 PM (13 years ago)
Author:
fsamuel@chromium.org
Message:

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.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r98636 r98637  
     12011-10-27  Fady Samuel  <fsamuel@chromium.org>
     2
     3        iframes seem to occasionally doubly scale or scale incorrectly when pageScaleFactor != 1.0
     4        https://bugs.webkit.org/show_bug.cgi?id=70552
     5
     6        Reviewed by Simon Fraser.
     7
     8        * fast/frames/iframe-double-scale-contents-expected.png: Added.
     9        * fast/frames/iframe-double-scale-contents-expected.txt: Added.
     10        * fast/frames/iframe-double-scale-contents.html: Added.
     11        * fast/frames/resources/iframe-content-scaling-bug-iframe.html: Added.
     12
    1132011-10-27  Mike Reed  <reed@google.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r98631 r98637  
     12011-10-27  Fady Samuel  <fsamuel@chromium.org>
     2
     3        iframes seem to occasionally doubly scale or scale incorrectly when pageScaleFactor != 1.0
     4        https://bugs.webkit.org/show_bug.cgi?id=70552
     5
     6        Reviewed by Simon Fraser.
     7
     8        Test: fast/frames/iframe-double-scale-contents.html
     9
     10        The iframe's document style was using the page's scale factor, rather than the frame's (1.0).
     11        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,
     12        but if the page scale factor is set prior to creating and laying out the iframe, the iframe's content would be doubly scaled.
     13
     14        * css/CSSStyleSelector.cpp:
     15        (WebCore::CSSStyleSelector::styleForDocument):
     16
    1172011-10-27  Nat Duca  <nduca@chromium.org>
    218
  • trunk/Source/WebCore/css/CSSStyleSelector.cpp

    r98615 r98637  
    11351135    documentStyle->setRTLOrdering(document->visuallyOrdered() ? VisualOrder : LogicalOrder);
    11361136    documentStyle->setZoom(frame ? frame->pageZoomFactor() : 1);
    1137     documentStyle->setPageScaleTransform(document->page() ? document->page()->pageScaleFactor() : 1);
     1137    documentStyle->setPageScaleTransform(frame ? frame->frameScaleFactor() : 1);
    11381138    documentStyle->setUserModify(document->inDesignMode() ? READ_WRITE : READ_ONLY);
    11391139
Note: See TracChangeset for help on using the changeset viewer.