Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
<rdar://problem/9028929> REGRESSION (r75897): Scaling applied twice t…
…o an iframe with a transformed ancestor Reviewed by Maciej Stachowiak. Source/WebCore: Test: fast/frames/iframe-scale-applied-twice.html * page/FrameView.cpp: (WebCore::FrameView::create): Set the initial bounds of the view to match the frame size. * platform/ScrollView.cpp: (WebCore::ScrollView::visibleContentRect): Based on bounds, not frame size. (WebCore::ScrollView::updateScrollbars): Ditto. (WebCore::ScrollView::setFrameRect): Moved code that really handles bounds size change to setBoundsSize(). (WebCore::ScrollView::setBoundsSize): Added. (WebCore::ScrollView::setInitialBoundsSize): Added. Sets the bounds size but does not update anything. (WebCore::ScrollView::frameRectsChanged): Based on bounds, not frame size. (WebCore::ScrollView::scrollbarCornerPresent): Ditto. * platform/ScrollView.h: (WebCore::ScrollView::boundsSize): Added this getter. * platform/Widget.h: (WebCore::Widget::resize): Set the bounds size to the frame size. * platform/mac/ScrollbarThemeMac.mm: (WebCore::ScrollbarThemeMac::paint): Fixed an error in the indirect drawing code path where the buffer rect was resized to capture only the damaged part, but was still drawn in the original location. LayoutTests: * fast/frames/iframe-scale-applied-twice-expected.txt: Added. * fast/frames/iframe-scale-applied-twice.html: Added. Canonical link: https://commits.webkit.org/69099@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@79167 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Dan Bernstein
committed
Feb 21, 2011
1 parent
1198692
commit 98f38f27808bedf3cbde21e9d33cca7c6deb3e6c
Showing
9 changed files
with
100 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,3 @@ | ||
PASS | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE HTML> | ||
<p id="result">Test did not run</p> | ||
<div style="-webkit-transform: scale(2);"> | ||
<iframe id="target" style="width: 100px; height: 100px; border: none;"></iframe> | ||
</div> | ||
<script> | ||
if (window.layoutTestController) | ||
layoutTestController.dumpAsText(); | ||
var target = document.getElementById("target"); | ||
document.body.offsetTop; | ||
document.getElementById("result").innerText = target.contentDocument.body.offsetWidth > 100 ? "FAIL" : "PASS"; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters