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

Unified Diff: Source/WebKit/chromium/src/NonCompositedContentHost.cpp

Issue 10782018: Merge 122529 - [chromium] Root invalidations for RTL pages need to be in the right space (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 5 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/rtl/rtl-overflow-invalidation-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/src/NonCompositedContentHost.cpp
===================================================================
--- Source/WebKit/chromium/src/NonCompositedContentHost.cpp (revision 122750)
+++ Source/WebKit/chromium/src/NonCompositedContentHost.cpp (working copy)
@@ -151,7 +151,9 @@
void NonCompositedContentHost::invalidateRect(const WebCore::IntRect& rect)
{
- m_graphicsLayer->setNeedsDisplayInRect(WebCore::FloatRect(rect));
+ WebCore::IntRect layerRect = rect;
+ layerRect.move(-m_layerAdjust);
+ m_graphicsLayer->setNeedsDisplayInRect(WebCore::FloatRect(layerRect));
}
void NonCompositedContentHost::notifyAnimationStarted(const WebCore::GraphicsLayer*, double /* time */)
« no previous file with comments | « LayoutTests/compositing/rtl/rtl-overflow-invalidation-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698