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

Unified Diff: Source/WebCore/rendering/RenderLayer.h

Issue 8520027: Merge 99752 - REGRESSION (r93614): Content remains despite parent element being scrolled off page... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/912/
Patch Set: Created 9 years, 1 month 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
Index: Source/WebCore/rendering/RenderLayer.h
===================================================================
--- Source/WebCore/rendering/RenderLayer.h (revision 100350)
+++ Source/WebCore/rendering/RenderLayer.h (working copy)
@@ -466,7 +466,15 @@
// Return a cached repaint rect, computed relative to the layer renderer's containerForRepaint.
LayoutRect repaintRect() const { return m_repaintRect; }
LayoutRect repaintRectIncludingDescendants() const;
- void updateLayerPositionsAfterScroll(bool fixed = false);
+
+ enum UpdateLayerPositionsAfterScrollFlag {
+ NoFlag = 0,
+ HasSeenFixedPositionedAncestor = 1 << 0,
+ HasSeenAncestorWithOverflowClip = 1 << 1
+ };
+
+ typedef unsigned UpdateLayerPositionsAfterScrollFlags;
+ void updateLayerPositionsAfterScroll(UpdateLayerPositionsAfterScrollFlags = NoFlag);
void setNeedsFullRepaint(bool f = true) { m_needsFullRepaint = f; }
LayoutUnit staticInlinePosition() const { return m_staticInlinePosition; }
@@ -735,6 +743,11 @@
bool m_containsDirtyOverlayScrollbars : 1;
+ // This is an optimization added for <table>.
+ // Currently cells do not need to update their repaint rectangles when scrolling. This also
+ // saves a lot of time when scrolling on a table.
+ bool m_canSkipRepaintRectsUpdateOnScroll : 1;
+
RenderBoxModelObject* m_renderer;
RenderLayer* m_parent;

Powered by Google App Engine
This is Rietveld 408576698