Skip to content
Permalink
Browse files
[GTK] Scrolling iframes, doesn't redraw their content
https://bugs.webkit.org/show_bug.cgi?id=167581

Reviewed by Carlos Garcia Campos.

Take into account whether we are using AC or not in order to repaint an area after scrolling.

No behaviour change, no new tests.

* WebProcess/WebCoreSupport/WebChromeClient.cpp:
(WebKit::WebChromeClient::invalidateContentsForSlowScroll):


Canonical link: https://commits.webkit.org/184611@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@211367 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
magomez committed Jan 30, 2017
1 parent eea5231 commit f6e823b737f60b0153a5ba455053f73ee6b2bc09
Showing with 20 additions and 3 deletions.
  1. +14 −0 Source/WebKit2/ChangeLog
  2. +6 −3 Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp
@@ -1,3 +1,17 @@
2017-01-30 Miguel Gomez <magomez@igalia.com>

[GTK] Scrolling iframes, doesn't redraw their content
https://bugs.webkit.org/show_bug.cgi?id=167581

Reviewed by Carlos Garcia Campos.

Take into account whether we are using AC or not in order to repaint an area after scrolling.

No behaviour change, no new tests.

* WebProcess/WebCoreSupport/WebChromeClient.cpp:
(WebKit::WebChromeClient::invalidateContentsForSlowScroll):

2017-01-30 Carlos Garcia Campos <cgarcia@igalia.com>

Unreviewed. Fix GTK+ debug build after r211365.
@@ -510,10 +510,13 @@ void WebChromeClient::invalidateContentsForSlowScroll(const IntRect& rect)

m_page.pageDidScroll();
#if USE(COORDINATED_GRAPHICS)
m_page.drawingArea()->scroll(rect, IntSize());
#else
m_page.drawingArea()->setNeedsDisplayInRect(rect);
FrameView* frameView = m_page.mainFrame()->view();
if (frameView && frameView->delegatesScrolling()) {
m_page.drawingArea()->scroll(rect, IntSize());
return;
}
#endif
m_page.drawingArea()->setNeedsDisplayInRect(rect);
}

void WebChromeClient::scroll(const IntSize& scrollDelta, const IntRect& scrollRect, const IntRect& clipRect)

0 comments on commit f6e823b

Please sign in to comment.