https://bugs.webkit.org/show_bug.cgi?id=83860
Patch by Zalan Bujtas <zbujtas@gmail.com> on 2012-04-13
Reviewed by Kenneth Rohde Christiansen.
Source/WebCore:
WK2 has compositing mode on all the time, while Wk1 turns it on only when
the page has composited content. This patch ensures that, when delegates scrolling behavior
is changed, backing stores are cleared only when there's an actual composition,
similarly to what CachedFrame does.
Test: fast/viewport/scroll-delegates-switch-on-page-with-no-composition-mode-asserts.html
* page/FrameView.cpp:
(WebCore::FrameView::delegatesScrollingDidChange):
LayoutTests:
* fast/viewport/scroll-delegates-switch-on-page-with-no-composition-mode-asserts-expected.txt: Added.
* fast/viewport/scroll-delegates-switch-on-page-with-no-composition-mode-asserts.html: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114109
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-04-13 Zalan Bujtas <zbujtas@gmail.com>
+
+ Enabling/disabling delegates scrolling when page has no composited content asserts on WK1.
+ https://bugs.webkit.org/show_bug.cgi?id=83860
+
+ Reviewed by Kenneth Rohde Christiansen.
+
+ * fast/viewport/scroll-delegates-switch-on-page-with-no-composition-mode-asserts-expected.txt: Added.
+ * fast/viewport/scroll-delegates-switch-on-page-with-no-composition-mode-asserts.html: Added.
+
2012-04-13 Philippe Normand <pnormand@igalia.com>
Unreviewed, GTK baselines for tests now being runned since the
--- /dev/null
+This test verifies that switching delegates scrolling on a page with no composition does not assert.
+
+PASS if no crash or assert in debug.
--- /dev/null
+<html>
+<body>
+ <p>This test verifies that switching delegates scrolling on a page with no composition does not assert.</p>
+ <p>PASS if no crash or assert in debug.</p>
+
+<script>
+if (window.layoutTestController && window.internals && internals.setDelegatesScrolling) {
+ layoutTestController.dumpAsText();
+ internals.setDelegatesScrolling(true, document);
+}
+</script>
+</body>
+</html>
+2012-04-13 Zalan Bujtas <zbujtas@gmail.com>
+
+ Enabling/disabling delegates scrolling when page has no composited content asserts on WK1.
+ https://bugs.webkit.org/show_bug.cgi?id=83860
+
+ Reviewed by Kenneth Rohde Christiansen.
+
+ WK2 has compositing mode on all the time, while Wk1 turns it on only when
+ the page has composited content. This patch ensures that, when delegates scrolling behavior
+ is changed, backing stores are cleared only when there's an actual composition,
+ similarly to what CachedFrame does.
+
+ Test: fast/viewport/scroll-delegates-switch-on-page-with-no-composition-mode-asserts.html
+
+ * page/FrameView.cpp:
+ (WebCore::FrameView::delegatesScrollingDidChange):
+
2012-04-13 Vivek Galatage <vivekgalatage@gmail.com>
Web Inspector: Line number is not displayed while debugging javascript
{
#if USE(ACCELERATED_COMPOSITING)
// When we switch to delgatesScrolling mode, we should destroy the scrolling/clipping layers in RenderLayerCompositor.
- clearBackingStores();
+ if (hasCompositedContent())
+ clearBackingStores();
#endif
}