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

Unified Diff: Source/core/rendering/RenderLayerScrollableArea.cpp

Issue 541273002: Element.setScrollOffset should integrate with RACUN (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added 2 more tests to TestExpectations for Mac. Created 6 years, 3 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/platform/win/fast/repaint/table-overflow-scroll-in-overflow-scroll-scrolled-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderLayerScrollableArea.cpp
diff --git a/Source/core/rendering/RenderLayerScrollableArea.cpp b/Source/core/rendering/RenderLayerScrollableArea.cpp
index d1caf1c5b142e0f294191bb5b73165c4550aae8f..9992af97062151636c65677b642c29eb91c7b008 100644
--- a/Source/core/rendering/RenderLayerScrollableArea.cpp
+++ b/Source/core/rendering/RenderLayerScrollableArea.cpp
@@ -402,15 +402,8 @@ void RenderLayerScrollableArea::setScrollOffset(const IntPoint& newScrollOffset)
}
// Just schedule a full paint invalidation of our object.
- if (requiresPaintInvalidation) {
- // For querying RenderLayer::compositingState()
- // This code appears correct, since scrolling outside of layout happens during activities that do not dirty compositing state.
- DisableCompositingQueryAsserts disabler;
- if (box().frameView()->isInPerformLayout())
- box().setShouldDoFullPaintInvalidation(true);
- else
- box().invalidatePaintUsingContainer(paintInvalidationContainer, layer()->renderer()->previousPaintInvalidationRect(), InvalidationScroll);
- }
+ if (requiresPaintInvalidation)
+ box().setShouldDoFullPaintInvalidation(true);
// Schedule the scroll DOM event.
if (box().node())
« no previous file with comments | « LayoutTests/platform/win/fast/repaint/table-overflow-scroll-in-overflow-scroll-scrolled-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698