Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: LayoutTests/compositing/iframes/iframe-composited-scrolling-hide-and-show.html

Issue 480803002: Merge CompositedScrollingForFrames into PreferCompositingToLCDText (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/compositing/iframes/iframe-composited-scrolling.html ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/compositing/iframes/iframe-composited-scrolling-hide-and-show.html
diff --git a/LayoutTests/compositing/iframes/iframe-composited-scrolling-hide-and-show.html b/LayoutTests/compositing/iframes/iframe-composited-scrolling-hide-and-show.html
index ac6ee702c37858225ef3f26babd4348b9e1822ec..e2a3368ea389b104fc91b37fe5b905ce066af7b9 100644
--- a/LayoutTests/compositing/iframes/iframe-composited-scrolling-hide-and-show.html
+++ b/LayoutTests/compositing/iframes/iframe-composited-scrolling-hide-and-show.html
@@ -9,21 +9,19 @@ iframe {
</style>
<script>
-description('This test makes sure hiding and showing a scrollable iframe correctly updates the set of non-fast scrollable rects.');
+ description('This test makes sure hiding and showing a scrollable iframe ' +
+ 'correctly updates the set of non-fast scrollable rects.');
-if (window.internals)
- internals.settings.setCompositedScrollingForFramesEnabled(false);
-
-onload = function() {
- if (window.internals) {
- var frame = document.getElementById('scrollable-iframe');
- shouldBe('internals.nonFastScrollableRects(document).length', '1');
- frame.style.display = 'none';
- shouldBe('internals.nonFastScrollableRects(document).length', '0');
- frame.style.display = '';
- shouldBe('internals.nonFastScrollableRects(document).length', '1');
+ onload = function() {
+ if (window.internals) {
+ var frame = document.getElementById('scrollable-iframe');
+ shouldBe('internals.nonFastScrollableRects(document).length', '1');
+ frame.style.display = 'none';
+ shouldBe('internals.nonFastScrollableRects(document).length', '0');
+ frame.style.display = '';
+ shouldBe('internals.nonFastScrollableRects(document).length', '1');
+ }
}
-}
</script>
<iframe id="scrollable-iframe" src="resources/subframe.html"></iframe>
« no previous file with comments | « LayoutTests/compositing/iframes/iframe-composited-scrolling.html ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698